mirror of
https://github.com/odoo/owl.git
synced 2025-10-06 19:59:41 +07:00
[FIX] typing: Component class should be generic on Props and Env
Otherwise, it prevents proper typing with typescript
This commit is contained in:
committed by
Samuel Degueldre
parent
07d34248ae
commit
6a15874d23
@@ -95,12 +95,12 @@ describe("t-props", () => {
|
||||
class Parent extends Component {
|
||||
static template = xml`
|
||||
<div>
|
||||
<Child t-props="props" a="1" b="2" />
|
||||
<Child t-props="childProps" a="1" b="2" />
|
||||
</div>
|
||||
`;
|
||||
static components = { Child };
|
||||
|
||||
props = { a: "a", c: "c" };
|
||||
childProps = { a: "a", c: "c" };
|
||||
}
|
||||
|
||||
await mount(Parent, fixture);
|
||||
|
||||
Reference in New Issue
Block a user