@typespec/emitter-framework 0.15.0-dev.3 → 0.15.0-dev.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +1 -16
- package/dist/src/python/builtins.d.ts +14 -0
- package/dist/src/python/builtins.d.ts.map +1 -0
- package/dist/src/python/builtins.js +29 -0
- package/dist/src/python/builtins.js.map +1 -0
- package/dist/src/python/components/array-expression/array-expression.d.ts +6 -0
- package/dist/src/python/components/array-expression/array-expression.d.ts.map +1 -0
- package/dist/src/python/components/array-expression/array-expression.js +11 -0
- package/dist/src/python/components/array-expression/array-expression.js.map +1 -0
- package/dist/src/python/components/array-expression/array-expression.test.d.ts +2 -0
- package/dist/src/python/components/array-expression/array-expression.test.d.ts.map +1 -0
- package/dist/src/python/components/array-expression/array-expression.test.js +19 -0
- package/dist/src/python/components/array-expression/array-expression.test.js.map +1 -0
- package/dist/src/python/components/array-expression/index.d.ts +2 -0
- package/dist/src/python/components/array-expression/index.d.ts.map +1 -0
- package/dist/src/python/components/array-expression/index.js +2 -0
- package/dist/src/python/components/array-expression/index.js.map +1 -0
- package/dist/src/python/components/atom/atom.d.ts +33 -0
- package/dist/src/python/components/atom/atom.d.ts.map +1 -0
- package/dist/src/python/components/atom/atom.js +88 -0
- package/dist/src/python/components/atom/atom.js.map +1 -0
- package/dist/src/python/components/atom/atom.test.d.ts +2 -0
- package/dist/src/python/components/atom/atom.test.d.ts.map +1 -0
- package/dist/src/python/components/atom/atom.test.js +224 -0
- package/dist/src/python/components/atom/atom.test.js.map +1 -0
- package/dist/src/python/components/atom/index.d.ts +2 -0
- package/dist/src/python/components/atom/index.d.ts.map +1 -0
- package/dist/src/python/components/atom/index.js +2 -0
- package/dist/src/python/components/atom/index.js.map +1 -0
- package/dist/src/python/components/class-declaration/class-bases.d.ts +45 -0
- package/dist/src/python/components/class-declaration/class-bases.d.ts.map +1 -0
- package/dist/src/python/components/class-declaration/class-bases.js +84 -0
- package/dist/src/python/components/class-declaration/class-bases.js.map +1 -0
- package/dist/src/python/components/class-declaration/class-body.d.ts +16 -0
- package/dist/src/python/components/class-declaration/class-body.d.ts.map +1 -0
- package/dist/src/python/components/class-declaration/class-body.js +52 -0
- package/dist/src/python/components/class-declaration/class-body.js.map +1 -0
- package/dist/src/python/components/class-declaration/class-declaration.d.ts +23 -0
- package/dist/src/python/components/class-declaration/class-declaration.d.ts.map +1 -0
- package/dist/src/python/components/class-declaration/class-declaration.js +118 -0
- package/dist/src/python/components/class-declaration/class-declaration.js.map +1 -0
- package/dist/src/python/components/class-declaration/class-declaration.test.d.ts +2 -0
- package/dist/src/python/components/class-declaration/class-declaration.test.d.ts.map +1 -0
- package/dist/src/python/components/class-declaration/class-declaration.test.js +1527 -0
- package/dist/src/python/components/class-declaration/class-declaration.test.js.map +1 -0
- package/dist/src/python/components/class-declaration/class-member.d.ts +16 -0
- package/dist/src/python/components/class-declaration/class-member.d.ts.map +1 -0
- package/dist/src/python/components/class-declaration/class-member.js +71 -0
- package/dist/src/python/components/class-declaration/class-member.js.map +1 -0
- package/dist/src/python/components/class-declaration/class-member.test.d.ts +2 -0
- package/dist/src/python/components/class-declaration/class-member.test.d.ts.map +1 -0
- package/dist/src/python/components/class-declaration/class-member.test.js +202 -0
- package/dist/src/python/components/class-declaration/class-member.test.js.map +1 -0
- package/dist/src/python/components/class-declaration/class-method.d.ts +22 -0
- package/dist/src/python/components/class-declaration/class-method.d.ts.map +1 -0
- package/dist/src/python/components/class-declaration/class-method.js +76 -0
- package/dist/src/python/components/class-declaration/class-method.js.map +1 -0
- package/dist/src/python/components/class-declaration/class-method.test.d.ts +2 -0
- package/dist/src/python/components/class-declaration/class-method.test.d.ts.map +1 -0
- package/dist/src/python/components/class-declaration/class-method.test.js +298 -0
- package/dist/src/python/components/class-declaration/class-method.test.js.map +1 -0
- package/dist/src/python/components/class-declaration/index.d.ts +7 -0
- package/dist/src/python/components/class-declaration/index.d.ts.map +1 -0
- package/dist/src/python/components/class-declaration/index.js +7 -0
- package/dist/src/python/components/class-declaration/index.js.map +1 -0
- package/dist/src/python/components/class-declaration/primitive-initializer.d.ts +22 -0
- package/dist/src/python/components/class-declaration/primitive-initializer.d.ts.map +1 -0
- package/dist/src/python/components/class-declaration/primitive-initializer.js +67 -0
- package/dist/src/python/components/class-declaration/primitive-initializer.js.map +1 -0
- package/dist/src/python/components/doc-element/doc-element.d.ts +46 -0
- package/dist/src/python/components/doc-element/doc-element.d.ts.map +1 -0
- package/dist/src/python/components/doc-element/doc-element.js +59 -0
- package/dist/src/python/components/doc-element/doc-element.js.map +1 -0
- package/dist/src/python/components/doc-element/index.d.ts +2 -0
- package/dist/src/python/components/doc-element/index.d.ts.map +1 -0
- package/dist/src/python/components/doc-element/index.js +2 -0
- package/dist/src/python/components/doc-element/index.js.map +1 -0
- package/dist/src/python/components/enum-declaration/enum-declaration.d.ts +8 -0
- package/dist/src/python/components/enum-declaration/enum-declaration.d.ts.map +1 -0
- package/dist/src/python/components/enum-declaration/enum-declaration.js +80 -0
- package/dist/src/python/components/enum-declaration/enum-declaration.js.map +1 -0
- package/dist/src/python/components/enum-declaration/enum-declaration.test.d.ts +2 -0
- package/dist/src/python/components/enum-declaration/enum-declaration.test.d.ts.map +1 -0
- package/dist/src/python/components/enum-declaration/enum-declaration.test.js +344 -0
- package/dist/src/python/components/enum-declaration/enum-declaration.test.js.map +1 -0
- package/dist/src/python/components/enum-declaration/enum-member.d.ts +9 -0
- package/dist/src/python/components/enum-declaration/enum-member.d.ts.map +1 -0
- package/dist/src/python/components/enum-declaration/enum-member.js +22 -0
- package/dist/src/python/components/enum-declaration/enum-member.js.map +1 -0
- package/dist/src/python/components/enum-declaration/index.d.ts +3 -0
- package/dist/src/python/components/enum-declaration/index.d.ts.map +1 -0
- package/dist/src/python/components/enum-declaration/index.js +3 -0
- package/dist/src/python/components/enum-declaration/index.js.map +1 -0
- package/dist/src/python/components/function-declaration/function-declaration.d.ts +24 -0
- package/dist/src/python/components/function-declaration/function-declaration.d.ts.map +1 -0
- package/dist/src/python/components/function-declaration/function-declaration.js +68 -0
- package/dist/src/python/components/function-declaration/function-declaration.js.map +1 -0
- package/dist/src/python/components/function-declaration/function-declaration.test.d.ts +2 -0
- package/dist/src/python/components/function-declaration/function-declaration.test.d.ts.map +1 -0
- package/dist/src/python/components/function-declaration/function-declaration.test.js +682 -0
- package/dist/src/python/components/function-declaration/function-declaration.test.js.map +1 -0
- package/dist/src/python/components/function-declaration/index.d.ts +2 -0
- package/dist/src/python/components/function-declaration/index.d.ts.map +1 -0
- package/dist/src/python/components/function-declaration/index.js +2 -0
- package/dist/src/python/components/function-declaration/index.js.map +1 -0
- package/dist/src/python/components/index.d.ts +12 -0
- package/dist/src/python/components/index.d.ts.map +1 -0
- package/dist/src/python/components/index.js +12 -0
- package/dist/src/python/components/index.js.map +1 -0
- package/dist/src/python/components/protocol-declaration/callable-parameters.d.ts +25 -0
- package/dist/src/python/components/protocol-declaration/callable-parameters.d.ts.map +1 -0
- package/dist/src/python/components/protocol-declaration/callable-parameters.js +33 -0
- package/dist/src/python/components/protocol-declaration/callable-parameters.js.map +1 -0
- package/dist/src/python/components/protocol-declaration/index.d.ts +3 -0
- package/dist/src/python/components/protocol-declaration/index.d.ts.map +1 -0
- package/dist/src/python/components/protocol-declaration/index.js +3 -0
- package/dist/src/python/components/protocol-declaration/index.js.map +1 -0
- package/dist/src/python/components/protocol-declaration/protocol-declaration.d.ts +8 -0
- package/dist/src/python/components/protocol-declaration/protocol-declaration.d.ts.map +1 -0
- package/dist/src/python/components/protocol-declaration/protocol-declaration.js +86 -0
- package/dist/src/python/components/protocol-declaration/protocol-declaration.js.map +1 -0
- package/dist/src/python/components/protocol-declaration/protocol-declaration.test.d.ts +2 -0
- package/dist/src/python/components/protocol-declaration/protocol-declaration.test.d.ts.map +1 -0
- package/dist/src/python/components/protocol-declaration/protocol-declaration.test.js +117 -0
- package/dist/src/python/components/protocol-declaration/protocol-declaration.test.js.map +1 -0
- package/dist/src/python/components/record-expression/index.d.ts +2 -0
- package/dist/src/python/components/record-expression/index.d.ts.map +1 -0
- package/dist/src/python/components/record-expression/index.js +2 -0
- package/dist/src/python/components/record-expression/index.js.map +1 -0
- package/dist/src/python/components/record-expression/record-expression.d.ts +6 -0
- package/dist/src/python/components/record-expression/record-expression.d.ts.map +1 -0
- package/dist/src/python/components/record-expression/record-expression.js +13 -0
- package/dist/src/python/components/record-expression/record-expression.js.map +1 -0
- package/dist/src/python/components/record-expression/record-expression.test.d.ts +2 -0
- package/dist/src/python/components/record-expression/record-expression.test.d.ts.map +1 -0
- package/dist/src/python/components/record-expression/record-expression.test.js +19 -0
- package/dist/src/python/components/record-expression/record-expression.test.js.map +1 -0
- package/dist/src/python/components/type-alias-declaration/index.d.ts +2 -0
- package/dist/src/python/components/type-alias-declaration/index.d.ts.map +1 -0
- package/dist/src/python/components/type-alias-declaration/index.js +2 -0
- package/dist/src/python/components/type-alias-declaration/index.js.map +1 -0
- package/dist/src/python/components/type-alias-declaration/type-alias-declaration.d.ts +16 -0
- package/dist/src/python/components/type-alias-declaration/type-alias-declaration.d.ts.map +1 -0
- package/dist/src/python/components/type-alias-declaration/type-alias-declaration.js +75 -0
- package/dist/src/python/components/type-alias-declaration/type-alias-declaration.js.map +1 -0
- package/dist/src/python/components/type-alias-declaration/type-alias-declaration.test.d.ts +2 -0
- package/dist/src/python/components/type-alias-declaration/type-alias-declaration.test.d.ts.map +1 -0
- package/dist/src/python/components/type-alias-declaration/type-alias-declaration.test.js +140 -0
- package/dist/src/python/components/type-alias-declaration/type-alias-declaration.test.js.map +1 -0
- package/dist/src/python/components/type-declaration/index.d.ts +2 -0
- package/dist/src/python/components/type-declaration/index.d.ts.map +1 -0
- package/dist/src/python/components/type-declaration/index.js +2 -0
- package/dist/src/python/components/type-declaration/index.js.map +1 -0
- package/dist/src/python/components/type-declaration/type-declaration.d.ts +11 -0
- package/dist/src/python/components/type-declaration/type-declaration.d.ts.map +1 -0
- package/dist/src/python/components/type-declaration/type-declaration.js +31 -0
- package/dist/src/python/components/type-declaration/type-declaration.js.map +1 -0
- package/dist/src/python/components/type-declaration/type-declaration.test.d.ts +2 -0
- package/dist/src/python/components/type-declaration/type-declaration.test.d.ts.map +1 -0
- package/dist/src/python/components/type-declaration/type-declaration.test.js +69 -0
- package/dist/src/python/components/type-declaration/type-declaration.test.js.map +1 -0
- package/dist/src/python/components/type-expression/index.d.ts +2 -0
- package/dist/src/python/components/type-expression/index.d.ts.map +1 -0
- package/dist/src/python/components/type-expression/index.js +2 -0
- package/dist/src/python/components/type-expression/index.js.map +1 -0
- package/dist/src/python/components/type-expression/type-expression.d.ts +12 -0
- package/dist/src/python/components/type-expression/type-expression.d.ts.map +1 -0
- package/dist/src/python/components/type-expression/type-expression.js +348 -0
- package/dist/src/python/components/type-expression/type-expression.js.map +1 -0
- package/dist/src/python/components/type-expression/type-expression.test.d.ts +2 -0
- package/dist/src/python/components/type-expression/type-expression.test.d.ts.map +1 -0
- package/dist/src/python/components/type-expression/type-expression.test.js +503 -0
- package/dist/src/python/components/type-expression/type-expression.test.js.map +1 -0
- package/dist/src/python/index.d.ts +4 -0
- package/dist/src/python/index.d.ts.map +1 -0
- package/dist/src/python/index.js +4 -0
- package/dist/src/python/index.js.map +1 -0
- package/dist/src/python/lib.d.ts +68 -0
- package/dist/src/python/lib.d.ts.map +1 -0
- package/dist/src/python/lib.js +38 -0
- package/dist/src/python/lib.js.map +1 -0
- package/dist/src/python/test-utils.d.ts +8 -0
- package/dist/src/python/test-utils.d.ts.map +1 -0
- package/dist/src/python/test-utils.js +25 -0
- package/dist/src/python/test-utils.js.map +1 -0
- package/dist/src/python/utils/index.d.ts +4 -0
- package/dist/src/python/utils/index.d.ts.map +1 -0
- package/dist/src/python/utils/index.js +4 -0
- package/dist/src/python/utils/index.js.map +1 -0
- package/dist/src/python/utils/operation.d.ts +27 -0
- package/dist/src/python/utils/operation.d.ts.map +1 -0
- package/dist/src/python/utils/operation.js +139 -0
- package/dist/src/python/utils/operation.js.map +1 -0
- package/dist/src/python/utils/refkey.d.ts +23 -0
- package/dist/src/python/utils/refkey.d.ts.map +1 -0
- package/dist/src/python/utils/refkey.js +36 -0
- package/dist/src/python/utils/refkey.js.map +1 -0
- package/dist/src/python/utils/type.d.ts +19 -0
- package/dist/src/python/utils/type.d.ts.map +1 -0
- package/dist/src/python/utils/type.js +24 -0
- package/dist/src/python/utils/type.js.map +1 -0
- package/package.json +9 -1
- package/package.json.bak +10 -1
- package/src/python/builtins.ts +43 -0
- package/src/python/components/array-expression/array-expression.test.tsx +14 -0
- package/src/python/components/array-expression/array-expression.tsx +11 -0
- package/src/python/components/array-expression/index.ts +1 -0
- package/src/python/components/atom/atom.test.tsx +244 -0
- package/src/python/components/atom/atom.tsx +95 -0
- package/src/python/components/atom/index.ts +1 -0
- package/src/python/components/class-declaration/class-bases.tsx +92 -0
- package/src/python/components/class-declaration/class-body.tsx +56 -0
- package/src/python/components/class-declaration/class-declaration.test.tsx +1414 -0
- package/src/python/components/class-declaration/class-declaration.tsx +116 -0
- package/src/python/components/class-declaration/class-member.test.tsx +194 -0
- package/src/python/components/class-declaration/class-member.tsx +67 -0
- package/src/python/components/class-declaration/class-method.test.tsx +250 -0
- package/src/python/components/class-declaration/class-method.tsx +97 -0
- package/src/python/components/class-declaration/index.ts +6 -0
- package/src/python/components/class-declaration/primitive-initializer.tsx +62 -0
- package/src/python/components/doc-element/doc-element.tsx +83 -0
- package/src/python/components/doc-element/index.ts +1 -0
- package/src/python/components/enum-declaration/enum-declaration.test.tsx +319 -0
- package/src/python/components/enum-declaration/enum-declaration.tsx +77 -0
- package/src/python/components/enum-declaration/enum-member.tsx +21 -0
- package/src/python/components/enum-declaration/index.ts +2 -0
- package/src/python/components/function-declaration/function-declaration.test.tsx +582 -0
- package/src/python/components/function-declaration/function-declaration.tsx +90 -0
- package/src/python/components/function-declaration/index.ts +1 -0
- package/src/python/components/index.ts +11 -0
- package/src/python/components/protocol-declaration/callable-parameters.tsx +44 -0
- package/src/python/components/protocol-declaration/index.ts +2 -0
- package/src/python/components/protocol-declaration/protocol-declaration.test.tsx +106 -0
- package/src/python/components/protocol-declaration/protocol-declaration.tsx +73 -0
- package/src/python/components/record-expression/index.ts +1 -0
- package/src/python/components/record-expression/record-expression.test.tsx +14 -0
- package/src/python/components/record-expression/record-expression.tsx +13 -0
- package/src/python/components/type-alias-declaration/index.ts +1 -0
- package/src/python/components/type-alias-declaration/type-alias-declaration.test.tsx +117 -0
- package/src/python/components/type-alias-declaration/type-alias-declaration.tsx +67 -0
- package/src/python/components/type-declaration/index.ts +1 -0
- package/src/python/components/type-declaration/type-declaration.test.tsx +58 -0
- package/src/python/components/type-declaration/type-declaration.tsx +26 -0
- package/src/python/components/type-expression/index.ts +1 -0
- package/src/python/components/type-expression/type-expression.test.tsx +463 -0
- package/src/python/components/type-expression/type-expression.tsx +333 -0
- package/src/python/index.ts +3 -0
- package/src/python/lib.ts +40 -0
- package/src/python/test-utils.tsx +31 -0
- package/src/python/utils/index.ts +3 -0
- package/src/python/utils/operation.ts +161 -0
- package/src/python/utils/refkey.ts +36 -0
- package/src/python/utils/type.ts +31 -0
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
import { createComponent as _$createComponent } from "@alloy-js/core/jsx-runtime";
|
|
2
|
+
import { Tester } from "#test/test-host.js";
|
|
3
|
+
import { t } from "@typespec/compiler/testing";
|
|
4
|
+
import { describe, expect, it } from "vitest";
|
|
5
|
+
import { getOutput } from "../../test-utils.js";
|
|
6
|
+
import { TypeAliasDeclaration } from "./type-alias-declaration.js";
|
|
7
|
+
describe("Python Declaration equivalency to Type Alias", () => {
|
|
8
|
+
describe("Type Alias Declaration bound to Typespec Scalar", () => {
|
|
9
|
+
describe("Scalar extends utcDateTime", () => {
|
|
10
|
+
it("creates a type alias declaration for a utcDateTime without encoding", async () => {
|
|
11
|
+
const {
|
|
12
|
+
program,
|
|
13
|
+
MyDate
|
|
14
|
+
} = await Tester.compile(t.code`
|
|
15
|
+
scalar ${t.scalar("MyDate")} extends utcDateTime;
|
|
16
|
+
`);
|
|
17
|
+
expect(getOutput(program, [_$createComponent(TypeAliasDeclaration, {
|
|
18
|
+
type: MyDate
|
|
19
|
+
})])).toRenderTo(`
|
|
20
|
+
from datetime import datetime
|
|
21
|
+
from typing import TypeAlias
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
my_date: TypeAlias = datetime`);
|
|
25
|
+
});
|
|
26
|
+
it("creates a type alias declaration with doc", async () => {
|
|
27
|
+
const {
|
|
28
|
+
program,
|
|
29
|
+
MyDate
|
|
30
|
+
} = await Tester.compile(t.code`
|
|
31
|
+
/**
|
|
32
|
+
* Type to represent a date
|
|
33
|
+
*/
|
|
34
|
+
scalar ${t.scalar("MyDate")} extends utcDateTime;
|
|
35
|
+
`);
|
|
36
|
+
expect(getOutput(program, [_$createComponent(TypeAliasDeclaration, {
|
|
37
|
+
type: MyDate
|
|
38
|
+
})])).toRenderTo(`
|
|
39
|
+
from datetime import datetime
|
|
40
|
+
from typing import TypeAlias
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
# Type to represent a date
|
|
44
|
+
my_date: TypeAlias = datetime`);
|
|
45
|
+
});
|
|
46
|
+
it("can override JSDoc", async () => {
|
|
47
|
+
const {
|
|
48
|
+
program,
|
|
49
|
+
MyDate
|
|
50
|
+
} = await Tester.compile(t.code`
|
|
51
|
+
/**
|
|
52
|
+
* Type to represent a date
|
|
53
|
+
*/
|
|
54
|
+
scalar ${t.scalar("MyDate")} extends utcDateTime;
|
|
55
|
+
`);
|
|
56
|
+
expect(getOutput(program, [_$createComponent(TypeAliasDeclaration, {
|
|
57
|
+
doc: "Overridden Doc",
|
|
58
|
+
type: MyDate
|
|
59
|
+
})])).toRenderTo(`
|
|
60
|
+
from datetime import datetime
|
|
61
|
+
from typing import TypeAlias
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
# Overridden Doc
|
|
65
|
+
my_date: TypeAlias = datetime`);
|
|
66
|
+
});
|
|
67
|
+
it("creates a type alias declaration for a utcDateTime with unixTimeStamp encoding", async () => {
|
|
68
|
+
const {
|
|
69
|
+
program,
|
|
70
|
+
MyDate
|
|
71
|
+
} = await Tester.compile(t.code`
|
|
72
|
+
@encode("unixTimestamp", int32)
|
|
73
|
+
scalar ${t.scalar("MyDate")} extends utcDateTime;
|
|
74
|
+
`);
|
|
75
|
+
expect(getOutput(program, [_$createComponent(TypeAliasDeclaration, {
|
|
76
|
+
type: MyDate
|
|
77
|
+
})])).toRenderTo(`
|
|
78
|
+
from datetime import datetime
|
|
79
|
+
from typing import TypeAlias
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
my_date: TypeAlias = datetime`);
|
|
83
|
+
});
|
|
84
|
+
it("creates a type alias declaration for a utcDateTime with rfc7231 encoding", async () => {
|
|
85
|
+
const {
|
|
86
|
+
program,
|
|
87
|
+
MyDate
|
|
88
|
+
} = await Tester.compile(t.code`
|
|
89
|
+
@encode("rfc7231")
|
|
90
|
+
scalar ${t.scalar("MyDate")} extends utcDateTime;
|
|
91
|
+
`);
|
|
92
|
+
expect(getOutput(program, [_$createComponent(TypeAliasDeclaration, {
|
|
93
|
+
type: MyDate
|
|
94
|
+
})])).toRenderTo(`
|
|
95
|
+
from datetime import datetime
|
|
96
|
+
from typing import TypeAlias
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
my_date: TypeAlias = datetime`);
|
|
100
|
+
});
|
|
101
|
+
it("creates a type alias declaration for a utcDateTime with rfc3339 encoding", async () => {
|
|
102
|
+
const {
|
|
103
|
+
program,
|
|
104
|
+
MyDate
|
|
105
|
+
} = await Tester.compile(t.code`
|
|
106
|
+
@encode("rfc3339")
|
|
107
|
+
scalar ${t.scalar("MyDate")} extends utcDateTime;
|
|
108
|
+
`);
|
|
109
|
+
expect(getOutput(program, [_$createComponent(TypeAliasDeclaration, {
|
|
110
|
+
type: MyDate
|
|
111
|
+
})])).toRenderTo(`
|
|
112
|
+
from datetime import datetime
|
|
113
|
+
from typing import TypeAlias
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
my_date: TypeAlias = datetime`);
|
|
117
|
+
});
|
|
118
|
+
});
|
|
119
|
+
});
|
|
120
|
+
describe("Type Alias Declaration for Operation (Callable)", () => {
|
|
121
|
+
it("creates a type alias for an operation type reference", async () => {
|
|
122
|
+
const {
|
|
123
|
+
program,
|
|
124
|
+
Handler
|
|
125
|
+
} = await Tester.compile(t.code`
|
|
126
|
+
op handleRequest(id: string): string;
|
|
127
|
+
alias ${t.type("Handler")} = handleRequest;
|
|
128
|
+
`);
|
|
129
|
+
expect(getOutput(program, [_$createComponent(TypeAliasDeclaration, {
|
|
130
|
+
type: Handler
|
|
131
|
+
})])).toRenderTo(`
|
|
132
|
+
from typing import Callable
|
|
133
|
+
from typing import TypeAlias
|
|
134
|
+
|
|
135
|
+
|
|
136
|
+
handle_request: TypeAlias = Callable[[str], str]`);
|
|
137
|
+
});
|
|
138
|
+
});
|
|
139
|
+
});
|
|
140
|
+
//# sourceMappingURL=type-alias-declaration.test.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["Tester","t","describe","expect","it","getOutput","TypeAliasDeclaration","program","MyDate","compile","code","scalar","_$createComponent","type","toRenderTo","doc","Handler"],"sources":["../../../../../src/python/components/type-alias-declaration/type-alias-declaration.test.tsx"],"sourcesContent":[null],"mappings":";AAAA,SAASA,MAAM,QAAQ,oBAAoB;AAC3C,SAASC,CAAC,QAAQ,4BAA4B;AAC9C,SAASC,QAAQ,EAAEC,MAAM,EAAEC,EAAE,QAAQ,QAAQ;AAC7C,SAASC,SAAS,QAAQ,qBAAqB;AAC/C,SAASC,oBAAoB,QAAQ,6BAA6B;AAElEJ,QAAQ,CAAC,8CAA8C,EAAE,MAAM;EAC7DA,QAAQ,CAAC,iDAAiD,EAAE,MAAM;IAChEA,QAAQ,CAAC,4BAA4B,EAAE,MAAM;MAC3CE,EAAE,CAAC,qEAAqE,EAAE,YAAY;QACpF,MAAM;UAAEG,OAAO;UAAEC;QAAO,CAAC,GAAG,MAAMR,MAAM,CAACS,OAAO,CAACR,CAAC,CAACS,IAAI;AAC/D,mBAAmBT,CAAC,CAACU,MAAM,CAAC,QAAQ,CAAC;AACrC,SAAS,CAAC;QAEFR,MAAM,CAACE,SAAS,CAACE,OAAO,EAAE,CAAAK,iBAAA,CAAEN,oBAAoB;UAACO,IAAI,EAAEL;QAAM,GAAK,CAAC,CAAC,CAACM,UAAU,CAAC;AACxF;AACA;AACA;AACA;AACA,wCAAwC,CAAC;MACnC,CAAC,CAAC;MAEFV,EAAE,CAAC,2CAA2C,EAAE,YAAY;QAC1D,MAAM;UAAEG,OAAO;UAAEC;QAAO,CAAC,GAAG,MAAMR,MAAM,CAACS,OAAO,CAACR,CAAC,CAACS,IAAI;AAC/D;AACA;AACA;AACA,mBAAmBT,CAAC,CAACU,MAAM,CAAC,QAAQ,CAAC;AACrC,SAAS,CAAC;QAEFR,MAAM,CAACE,SAAS,CAACE,OAAO,EAAE,CAAAK,iBAAA,CAAEN,oBAAoB;UAACO,IAAI,EAAEL;QAAM,GAAK,CAAC,CAAC,CAACM,UAAU,CAAC;AACxF;AACA;AACA;AACA;AACA;AACA,wCAAwC,CAAC;MACnC,CAAC,CAAC;MAEFV,EAAE,CAAC,oBAAoB,EAAE,YAAY;QACnC,MAAM;UAAEG,OAAO;UAAEC;QAAO,CAAC,GAAG,MAAMR,MAAM,CAACS,OAAO,CAACR,CAAC,CAACS,IAAI;AAC/D;AACA;AACA;AACA,mBAAmBT,CAAC,CAACU,MAAM,CAAC,QAAQ,CAAC;AACrC,SAAS,CAAC;QAEFR,MAAM,CAACE,SAAS,CAACE,OAAO,EAAE,CAAAK,iBAAA,CAAEN,oBAAoB;UAACS,GAAG,EAAE,gBAAgB;UAAEF,IAAI,EAAEL;QAAM,GAAK,CAAC,CAAC,CACxFM,UAAU,CAAC;AACtB;AACA;AACA;AACA;AACA;AACA,wCAAwC,CAAC;MACnC,CAAC,CAAC;MAEFV,EAAE,CAAC,gFAAgF,EAAE,YAAY;QAC/F,MAAM;UAAEG,OAAO;UAAEC;QAAO,CAAC,GAAG,MAAMR,MAAM,CAACS,OAAO,CAACR,CAAC,CAACS,IAAI;AAC/D;AACA,mBAAmBT,CAAC,CAACU,MAAM,CAAC,QAAQ,CAAC;AACrC,SAAS,CAAC;QAEFR,MAAM,CAACE,SAAS,CAACE,OAAO,EAAE,CAAAK,iBAAA,CAAEN,oBAAoB;UAACO,IAAI,EAAEL;QAAM,GAAK,CAAC,CAAC,CAACM,UAAU,CAAC;AACxF;AACA;AACA;AACA;AACA,wCAAwC,CAAC;MACnC,CAAC,CAAC;MAEFV,EAAE,CAAC,0EAA0E,EAAE,YAAY;QACzF,MAAM;UAAEG,OAAO;UAAEC;QAAO,CAAC,GAAG,MAAMR,MAAM,CAACS,OAAO,CAACR,CAAC,CAACS,IAAI;AAC/D;AACA,mBAAmBT,CAAC,CAACU,MAAM,CAAC,QAAQ,CAAC;AACrC,SAAS,CAAC;QAEFR,MAAM,CAACE,SAAS,CAACE,OAAO,EAAE,CAAAK,iBAAA,CAAEN,oBAAoB;UAACO,IAAI,EAAEL;QAAM,GAAK,CAAC,CAAC,CAACM,UAAU,CAAC;AACxF;AACA;AACA;AACA;AACA,wCAAwC,CAAC;MACnC,CAAC,CAAC;MAEFV,EAAE,CAAC,0EAA0E,EAAE,YAAY;QACzF,MAAM;UAAEG,OAAO;UAAEC;QAAO,CAAC,GAAG,MAAMR,MAAM,CAACS,OAAO,CAACR,CAAC,CAACS,IAAI;AAC/D;AACA,mBAAmBT,CAAC,CAACU,MAAM,CAAC,QAAQ,CAAC;AACrC,SAAS,CAAC;QAEFR,MAAM,CAACE,SAAS,CAACE,OAAO,EAAE,CAAAK,iBAAA,CAAEN,oBAAoB;UAACO,IAAI,EAAEL;QAAM,GAAK,CAAC,CAAC,CAACM,UAAU,CAAC;AACxF;AACA;AACA;AACA;AACA,wCAAwC,CAAC;MACnC,CAAC,CAAC;IACJ,CAAC,CAAC;EACJ,CAAC,CAAC;EAEFZ,QAAQ,CAAC,iDAAiD,EAAE,MAAM;IAChEE,EAAE,CAAC,sDAAsD,EAAE,YAAY;MACrE,MAAM;QAAEG,OAAO;QAAES;MAAQ,CAAC,GAAG,MAAMhB,MAAM,CAACS,OAAO,CAACR,CAAC,CAACS,IAAI;AAC9D;AACA,gBAAgBT,CAAC,CAACY,IAAI,CAAC,SAAS,CAAC;AACjC,OAAO,CAAC;MAEFV,MAAM,CAACE,SAAS,CAACE,OAAO,EAAE,CAAAK,iBAAA,CAAEN,oBAAoB;QAACO,IAAI,EAAEG;MAAO,GAAK,CAAC,CAAC,CAACF,UAAU,CAAC;AACvF;AACA;AACA;AACA;AACA,yDAAyD,CAAC;IACtD,CAAC,CAAC;EACJ,CAAC,CAAC;AACJ,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/python/components/type-declaration/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sources":["../../../../../src/python/components/type-declaration/index.ts"],"sourcesContent":[null],"mappings":"AAAA,cAAc,uBAAuB","ignoreList":[]}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as py from "@alloy-js/python";
|
|
2
|
+
import type { Type } from "@typespec/compiler";
|
|
3
|
+
export interface TypeDeclarationProps extends Omit<py.BaseDeclarationProps, "name"> {
|
|
4
|
+
name?: string;
|
|
5
|
+
type: Type;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* Single entry point to declare a Python symbol for any TypeSpec `Type`.
|
|
9
|
+
*/
|
|
10
|
+
export declare function TypeDeclaration(props: TypeDeclarationProps): import("@alloy-js/core").Children;
|
|
11
|
+
//# sourceMappingURL=type-declaration.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"type-declaration.d.ts","sourceRoot":"","sources":["../../../../../src/python/components/type-declaration/type-declaration.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,kBAAkB,CAAC;AACvC,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAI/C,MAAM,WAAW,oBAAqB,SAAQ,IAAI,CAAC,EAAE,CAAC,oBAAoB,EAAE,MAAM,CAAC;IACjF,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,IAAI,CAAC;CACZ;AAED;;GAEG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,oBAAoB,qCAW1D"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { mergeProps as _$mergeProps, createComponent as _$createComponent } from "@alloy-js/core/jsx-runtime";
|
|
2
|
+
import { useTsp } from "#core/context/index.js";
|
|
3
|
+
import { EnumDeclaration } from "../enum-declaration/enum-declaration.js";
|
|
4
|
+
import { TypeAliasDeclaration } from "../type-alias-declaration/type-alias-declaration.js";
|
|
5
|
+
/**
|
|
6
|
+
* Single entry point to declare a Python symbol for any TypeSpec `Type`.
|
|
7
|
+
*/
|
|
8
|
+
export function TypeDeclaration(props) {
|
|
9
|
+
const {
|
|
10
|
+
$
|
|
11
|
+
} = useTsp();
|
|
12
|
+
const {
|
|
13
|
+
type,
|
|
14
|
+
...restProps
|
|
15
|
+
} = props;
|
|
16
|
+
const doc = props.doc ?? $.type.getDoc(type);
|
|
17
|
+
switch (type.kind) {
|
|
18
|
+
case "Enum":
|
|
19
|
+
return _$createComponent(EnumDeclaration, _$mergeProps({
|
|
20
|
+
doc: doc,
|
|
21
|
+
type: type
|
|
22
|
+
}, restProps));
|
|
23
|
+
default:
|
|
24
|
+
// All other kinds map to a Python type alias using TypeExpression
|
|
25
|
+
return _$createComponent(TypeAliasDeclaration, _$mergeProps({
|
|
26
|
+
doc: doc,
|
|
27
|
+
type: type
|
|
28
|
+
}, restProps));
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
//# sourceMappingURL=type-declaration.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["useTsp","EnumDeclaration","TypeAliasDeclaration","TypeDeclaration","props","$","type","restProps","doc","getDoc","kind","_$createComponent","_$mergeProps"],"sources":["../../../../../src/python/components/type-declaration/type-declaration.tsx"],"sourcesContent":[null],"mappings":";AAAA,SAASA,MAAM,QAAQ,wBAAwB;AAG/C,SAASC,eAAe,QAAQ,yCAAyC;AACzE,SAASC,oBAAoB,QAAQ,qDAAqD;AAO1F;AACA;AACA;AACA,OAAO,SAASC,eAAeA,CAACC,KAA2B,EAAE;EAC3D,MAAM;IAAEC;EAAE,CAAC,GAAGL,MAAM,CAAC,CAAC;EACtB,MAAM;IAAEM,IAAI;IAAE,GAAGC;EAAU,CAAC,GAAGH,KAAK;EACpC,MAAMI,GAAG,GAAGJ,KAAK,CAACI,GAAG,IAAIH,CAAC,CAACC,IAAI,CAACG,MAAM,CAACH,IAAI,CAAC;EAC5C,QAAQA,IAAI,CAACI,IAAI;IACf,KAAK,MAAM;MACT,OAAAC,iBAAA,CAAQV,eAAe,EAAAW,YAAA;QAACJ,GAAG,EAAEA,GAAG;QAAEF,IAAI,EAAEA;MAAI,GAAMC,SAAS;IAC7D;MACE;MACA,OAAAI,iBAAA,CAAQT,oBAAoB,EAAAU,YAAA;QAACJ,GAAG,EAAEA,GAAG;QAAEF,IAAI,EAAEA;MAAI,GAAMC,SAAS;EACpE;AACF","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"type-declaration.test.d.ts","sourceRoot":"","sources":["../../../../../src/python/components/type-declaration/type-declaration.test.tsx"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { createComponent as _$createComponent } from "@alloy-js/core/jsx-runtime";
|
|
2
|
+
import { Tester } from "#test/test-host.js";
|
|
3
|
+
import { d } from "@alloy-js/core/testing";
|
|
4
|
+
import { t } from "@typespec/compiler/testing";
|
|
5
|
+
import { describe, expect, it } from "vitest";
|
|
6
|
+
import { getOutput } from "../../test-utils.js";
|
|
7
|
+
import { TypeDeclaration } from "./type-declaration.js";
|
|
8
|
+
describe("Python TypeDeclaration dispatcher", () => {
|
|
9
|
+
it("dispatches to EnumDeclaration for enums", async () => {
|
|
10
|
+
const {
|
|
11
|
+
program,
|
|
12
|
+
Foo
|
|
13
|
+
} = await Tester.compile(t.code`
|
|
14
|
+
enum ${t.enum("Foo")} {
|
|
15
|
+
one: 1,
|
|
16
|
+
two: 2,
|
|
17
|
+
three: 3
|
|
18
|
+
}
|
|
19
|
+
`);
|
|
20
|
+
const output = getOutput(program, [_$createComponent(TypeDeclaration, {
|
|
21
|
+
type: Foo
|
|
22
|
+
})]);
|
|
23
|
+
expect(output).toRenderTo(d`
|
|
24
|
+
from enum import IntEnum
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
class Foo(IntEnum):
|
|
28
|
+
ONE = 1
|
|
29
|
+
TWO = 2
|
|
30
|
+
THREE = 3
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
`);
|
|
34
|
+
});
|
|
35
|
+
it("dispatches scalars to TypeAliasDeclaration", async () => {
|
|
36
|
+
const {
|
|
37
|
+
program,
|
|
38
|
+
MyDate
|
|
39
|
+
} = await Tester.compile(t.code`
|
|
40
|
+
scalar ${t.scalar("MyDate")} extends utcDateTime;
|
|
41
|
+
`);
|
|
42
|
+
const output = getOutput(program, [_$createComponent(TypeDeclaration, {
|
|
43
|
+
type: MyDate
|
|
44
|
+
})]);
|
|
45
|
+
expect(output).toRenderTo(d`
|
|
46
|
+
from datetime import datetime
|
|
47
|
+
from typing import TypeAlias
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
my_date: TypeAlias = datetime`);
|
|
51
|
+
});
|
|
52
|
+
it("dispatches arrays (model is Array<T>) to type alias with list[T]", async () => {
|
|
53
|
+
const {
|
|
54
|
+
program,
|
|
55
|
+
Items
|
|
56
|
+
} = await Tester.compile(t.code`
|
|
57
|
+
model ${t.model("Items")} is Array<int32>;
|
|
58
|
+
`);
|
|
59
|
+
const output = getOutput(program, [_$createComponent(TypeDeclaration, {
|
|
60
|
+
type: Items
|
|
61
|
+
})]);
|
|
62
|
+
expect(output).toRenderTo(d`
|
|
63
|
+
from typing import TypeAlias
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
items: TypeAlias = list[int]`);
|
|
67
|
+
});
|
|
68
|
+
});
|
|
69
|
+
//# sourceMappingURL=type-declaration.test.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["Tester","d","t","describe","expect","it","getOutput","TypeDeclaration","program","Foo","compile","code","enum","output","_$createComponent","type","toRenderTo","MyDate","scalar","Items","model"],"sources":["../../../../../src/python/components/type-declaration/type-declaration.test.tsx"],"sourcesContent":[null],"mappings":";AAAA,SAASA,MAAM,QAAQ,oBAAoB;AAC3C,SAASC,CAAC,QAAQ,wBAAwB;AAC1C,SAASC,CAAC,QAAQ,4BAA4B;AAC9C,SAASC,QAAQ,EAAEC,MAAM,EAAEC,EAAE,QAAQ,QAAQ;AAC7C,SAASC,SAAS,QAAQ,qBAAqB;AAC/C,SAASC,eAAe,QAAQ,uBAAuB;AAEvDJ,QAAQ,CAAC,mCAAmC,EAAE,MAAM;EAClDE,EAAE,CAAC,yCAAyC,EAAE,YAAY;IACxD,MAAM;MAAEG,OAAO;MAAEC;IAAI,CAAC,GAAG,MAAMT,MAAM,CAACU,OAAO,CAACR,CAAC,CAACS,IAAI;AACxD,aAAaT,CAAC,CAACU,IAAI,CAAC,KAAK,CAAC;AAC1B;AACA;AACA;AACA;AACA,KAAK,CAAC;IAEF,MAAMC,MAAM,GAAGP,SAAS,CAACE,OAAO,EAAE,CAAAM,iBAAA,CAAEP,eAAe;MAACQ,IAAI,EAAEN;IAAG,GAAK,CAAC;IACnEL,MAAM,CAACS,MAAM,CAAC,CAACG,UAAU,CAACf,CAAC;AAC/B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK,CAAC;EACJ,CAAC,CAAC;EAEFI,EAAE,CAAC,4CAA4C,EAAE,YAAY;IAC3D,MAAM;MAAEG,OAAO;MAAES;IAAO,CAAC,GAAG,MAAMjB,MAAM,CAACU,OAAO,CAACR,CAAC,CAACS,IAAI;AAC3D,eAAeT,CAAC,CAACgB,MAAM,CAAC,QAAQ,CAAC;AACjC,KAAK,CAAC;IAEF,MAAML,MAAM,GAAGP,SAAS,CAACE,OAAO,EAAE,CAAAM,iBAAA,CAAEP,eAAe;MAACQ,IAAI,EAAEE;IAAM,GAAK,CAAC;IACtEb,MAAM,CAACS,MAAM,CAAC,CAACG,UAAU,CAACf,CAAC;AAC/B;AACA;AACA;AACA;AACA,oCAAoC,CAAC;EACnC,CAAC,CAAC;EAEFI,EAAE,CAAC,kEAAkE,EAAE,YAAY;IACjF,MAAM;MAAEG,OAAO;MAAEW;IAAM,CAAC,GAAG,MAAMnB,MAAM,CAACU,OAAO,CAACR,CAAC,CAACS,IAAI;AAC1D,cAAcT,CAAC,CAACkB,KAAK,CAAC,OAAO,CAAC;AAC9B,KAAK,CAAC;IAEF,MAAMP,MAAM,GAAGP,SAAS,CAACE,OAAO,EAAE,CAAAM,iBAAA,CAAEP,eAAe;MAACQ,IAAI,EAAEI;IAAK,GAAK,CAAC;IACrEf,MAAM,CAACS,MAAM,CAAC,CAACG,UAAU,CAACf,CAAC;AAC/B;AACA;AACA;AACA,mCAAmC,CAAC;EAClC,CAAC,CAAC;AACJ,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/python/components/type-expression/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sources":["../../../../../src/python/components/type-expression/index.ts"],"sourcesContent":[null],"mappings":"AAAA,cAAc,sBAAsB","ignoreList":[]}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { type Type } from "@typespec/compiler";
|
|
2
|
+
export interface TypeExpressionProps {
|
|
3
|
+
type: Type;
|
|
4
|
+
/**
|
|
5
|
+
* Whether to disallow references. Setting this will force the type to be
|
|
6
|
+
* emitted inline, even if it is a declaration that would otherwise be
|
|
7
|
+
* referenced.
|
|
8
|
+
*/
|
|
9
|
+
noReference?: boolean;
|
|
10
|
+
}
|
|
11
|
+
export declare function TypeExpression(props: TypeExpressionProps): string | number | boolean | void | import("@alloy-js/core").RenderableObject | import("@alloy-js/core").RefkeyableObject | (() => import("@alloy-js/core").Children) | import("@alloy-js/core").Ref<any, any> | import("@alloy-js/core").CustomContext | import("@alloy-js/core").IndentIntrinsicElement | import("@alloy-js/core").IndentIfBreakIntrinsicElement | import("@alloy-js/core").BrIntrinsicElement | import("@alloy-js/core").LineIntrinsicElement | import("@alloy-js/core").HbrIntrinsicElement | import("@alloy-js/core").HardlineIntrinsicElement | import("@alloy-js/core").SbrIntrinsicElement | import("@alloy-js/core").SoftlineIntrinsicElement | import("@alloy-js/core").GroupIntrinsicElement | import("@alloy-js/core").AlignIntrinsicElement | import("@alloy-js/core").FillIntrinsicElement | import("@alloy-js/core").BreakParentIntrinsicElement | import("@alloy-js/core").LineSuffixIntrinsicElement | import("@alloy-js/core").LineSuffixBoundaryIntrinsicElement | import("@alloy-js/core").DedentIntrinsicElement | import("@alloy-js/core").LiterallineIntrinsicElement | import("@alloy-js/core").LbrIntrinsicElement | import("@alloy-js/core").DedentToRootIntrinsicElement | import("@alloy-js/core").MarkAsRootIntrinsicElement | import("@alloy-js/core").IfBreakIntrinsicElement | import("@alloy-js/core").Children[] | null;
|
|
12
|
+
//# sourceMappingURL=type-expression.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"type-expression.d.ts","sourceRoot":"","sources":["../../../../../src/python/components/type-expression/type-expression.tsx"],"names":[],"mappings":"AAKA,OAAO,EAKL,KAAK,IAAI,EACV,MAAM,oBAAoB,CAAC;AAQ5B,MAAM,WAAW,mBAAmB;IAClC,IAAI,EAAE,IAAI,CAAC;IAEX;;;;OAIG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAED,wBAAgB,cAAc,CAAC,KAAK,EAAE,mBAAmB,4yCA8KxD"}
|