@typespec/http-client-js 0.16.1-dev.1 → 0.16.1-dev.2
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/.turbo/turbo-build.log +1 -1
- package/dist/src/components/client-context/client-context-declaration.d.ts +1 -1
- package/dist/src/components/client-context/client-context-declaration.d.ts.map +1 -1
- package/dist/src/components/client-context/client-context-factory.d.ts +2 -2
- package/dist/src/components/client-context/client-context-factory.d.ts.map +1 -1
- package/dist/src/components/client-context/client-context-factory.js.map +1 -1
- package/dist/src/components/client-context/client-context-options.d.ts +2 -2
- package/dist/src/components/client-context/client-context-options.d.ts.map +1 -1
- package/dist/src/components/client-context/client-context-options.js.map +1 -1
- package/dist/src/components/client-context/client-context.d.ts +1 -1
- package/dist/src/components/client-context/client-context.d.ts.map +1 -1
- package/dist/src/components/client-context/parametrized-endpoint.d.ts +2 -2
- package/dist/src/components/client-context/parametrized-endpoint.d.ts.map +1 -1
- package/dist/src/components/client-context/parametrized-endpoint.js.map +1 -1
- package/dist/src/components/client-directory.d.ts +2 -2
- package/dist/src/components/client-directory.d.ts.map +1 -1
- package/dist/src/components/client-directory.js.map +1 -1
- package/dist/src/components/client-operation.d.ts +2 -2
- package/dist/src/components/client-operation.d.ts.map +1 -1
- package/dist/src/components/client-operation.js.map +1 -1
- package/dist/src/components/client.d.ts +2 -2
- package/dist/src/components/client.d.ts.map +1 -1
- package/dist/src/components/client.js.map +1 -1
- package/dist/src/components/encoding-provider.d.ts +1 -1
- package/dist/src/components/encoding-provider.d.ts.map +1 -1
- package/dist/src/components/http-request-options.d.ts +2 -2
- package/dist/src/components/http-request-options.d.ts.map +1 -1
- package/dist/src/components/http-request-options.js.map +1 -1
- package/dist/src/components/http-request-parameters-expression.d.ts +2 -2
- package/dist/src/components/http-request-parameters-expression.d.ts.map +1 -1
- package/dist/src/components/http-request-parameters-expression.js.map +1 -1
- package/dist/src/components/http-request.d.ts +2 -2
- package/dist/src/components/http-request.d.ts.map +1 -1
- package/dist/src/components/http-request.js.map +1 -1
- package/dist/src/components/http-response.d.ts +2 -2
- package/dist/src/components/http-response.d.ts.map +1 -1
- package/dist/src/components/http-response.js.map +1 -1
- package/dist/src/components/operation-handlers/index.d.ts +1 -1
- package/dist/src/components/operation-handlers/index.d.ts.map +1 -1
- package/dist/src/components/operation-handlers/index.js +0 -1
- package/dist/src/components/operation-handlers/index.js.map +1 -1
- package/dist/src/components/operation-handlers/operation-pipeline.d.ts +2 -2
- package/dist/src/components/operation-handlers/operation-pipeline.d.ts.map +1 -1
- package/dist/src/components/operation-handlers/paging/page-item.d.ts +1 -1
- package/dist/src/components/operation-handlers/paging/page-item.d.ts.map +1 -1
- package/dist/src/components/operation-handlers/paging/page-response.d.ts +2 -2
- package/dist/src/components/operation-handlers/paging/page-response.d.ts.map +1 -1
- package/dist/src/components/operation-handlers/paging/page-settings.d.ts +2 -2
- package/dist/src/components/operation-handlers/paging/page-settings.d.ts.map +1 -1
- package/dist/src/components/operation-handlers/paging/paginated-operation-handler.d.ts +1 -1
- package/dist/src/components/operation-handlers/paging/paginated-operation-handler.d.ts.map +1 -1
- package/dist/src/components/operation-handlers/paging/paginated-operation-handler.js.map +1 -1
- package/dist/src/components/operation-handlers/paging/request-send.d.ts +2 -2
- package/dist/src/components/operation-handlers/paging/request-send.d.ts.map +1 -1
- package/dist/src/components/operation-handlers/paging/request-send.js.map +1 -1
- package/dist/src/components/operation-handlers/paging/response-deserialize.d.ts +3 -3
- package/dist/src/components/operation-handlers/paging/response-deserialize.d.ts.map +1 -1
- package/dist/src/components/operation-handlers/paging/response-deserialize.js.map +1 -1
- package/dist/src/components/operation-handlers/paging/util.d.ts +2 -2
- package/dist/src/components/operation-handlers/paging/util.d.ts.map +1 -1
- package/dist/src/components/operation-handlers/types.d.ts +1 -1
- package/dist/src/components/operation-handlers/types.d.ts.map +1 -1
- package/dist/src/components/operation-options.d.ts +2 -2
- package/dist/src/components/operation-options.d.ts.map +1 -1
- package/dist/src/components/operation-parameters.d.ts +3 -3
- package/dist/src/components/operation-parameters.d.ts.map +1 -1
- package/dist/src/components/operation-parameters.js.map +1 -1
- package/dist/src/components/output.d.ts +2 -2
- package/dist/src/components/output.d.ts.map +1 -1
- package/dist/src/components/static-helpers/bytes-encoding.d.ts +2 -2
- package/dist/src/components/static-helpers/bytes-encoding.d.ts.map +1 -1
- package/dist/src/components/static-helpers/bytes-encoding.js.map +1 -1
- package/dist/src/components/testing/client-options.d.ts +1 -1
- package/dist/src/components/testing/client-options.d.ts.map +1 -1
- package/dist/src/components/testing/client-options.js.map +1 -1
- package/dist/src/components/transforms/data-transform.d.ts +2 -2
- package/dist/src/components/transforms/data-transform.d.ts.map +1 -1
- package/dist/src/components/transforms/json/json-model-additional-properties-transform.d.ts +1 -1
- package/dist/src/components/transforms/json/json-model-additional-properties-transform.d.ts.map +1 -1
- package/dist/src/components/transforms/json/json-model-additional-properties-transform.js.map +1 -1
- package/dist/src/components/transforms/json/json-model-property-transform.d.ts +2 -2
- package/dist/src/components/transforms/json/json-model-property-transform.d.ts.map +1 -1
- package/dist/src/components/transforms/json/json-model-property-transform.js.map +1 -1
- package/dist/src/components/transforms/json/json-transform-discriminator.d.ts +1 -1
- package/dist/src/components/transforms/json/json-transform-discriminator.d.ts.map +1 -1
- package/dist/src/components/transforms/json/json-transform.d.ts +2 -2
- package/dist/src/components/transforms/json/json-transform.d.ts.map +1 -1
- package/dist/src/components/transforms/json/json-transform.js.map +1 -1
- package/dist/src/components/transforms/json/union-transform.d.ts +1 -1
- package/dist/src/components/transforms/json/union-transform.d.ts.map +1 -1
- package/dist/src/components/transforms/json/union-transform.js.map +1 -1
- package/dist/src/components/transforms/multipart/array-part-transform.d.ts +2 -2
- package/dist/src/components/transforms/multipart/array-part-transform.d.ts.map +1 -1
- package/dist/src/components/transforms/multipart/file-part-transform.d.ts +2 -2
- package/dist/src/components/transforms/multipart/file-part-transform.d.ts.map +1 -1
- package/dist/src/components/transforms/multipart/file-part-transform.js.map +1 -1
- package/dist/src/components/transforms/multipart/multipart-transform.d.ts +1 -1
- package/dist/src/components/transforms/multipart/multipart-transform.d.ts.map +1 -1
- package/dist/src/components/transforms/multipart/part-transform.d.ts +1 -1
- package/dist/src/components/transforms/multipart/part-transform.d.ts.map +1 -1
- package/dist/src/components/transforms/multipart/simple-part-transform.d.ts +2 -2
- package/dist/src/components/transforms/multipart/simple-part-transform.d.ts.map +1 -1
- package/dist/src/components/transforms/multipart/simple-part-transform.js.map +1 -1
- package/dist/src/components/transforms/operation-transform-declaration.d.ts +3 -3
- package/dist/src/components/transforms/operation-transform-declaration.d.ts.map +1 -1
- package/dist/src/components/transforms/operation-transform-declaration.js.map +1 -1
- package/dist/src/components/transforms/operation-transform-expression.d.ts +1 -1
- package/dist/src/components/transforms/operation-transform-expression.d.ts.map +1 -1
- package/dist/src/components/transforms/operation-transform-expression.js.map +1 -1
- package/dist/src/components/transforms/scalar-transform.d.ts +2 -2
- package/dist/src/components/transforms/scalar-transform.d.ts.map +1 -1
- package/dist/src/components/transforms/scalar-transform.js.map +1 -1
- package/dist/src/components/utils/unpack-model-property.d.ts +1 -1
- package/dist/src/components/utils/unpack-model-property.d.ts.map +1 -1
- package/dist/src/components/utils/unpack-model-property.js.map +1 -1
- package/dist/src/components/utils/url-template.d.ts +1 -1
- package/dist/src/components/utils/url-template.d.ts.map +1 -1
- package/dist/src/context/encoding/encoding-context.d.ts +2 -2
- package/dist/src/context/encoding/encoding-context.d.ts.map +1 -1
- package/dist/src/context/encoding/encoding-context.js.map +1 -1
- package/dist/src/emitter.d.ts +3 -3
- package/dist/src/emitter.d.ts.map +1 -1
- package/dist/src/emitter.js.map +1 -1
- package/dist/src/lib.d.ts.map +1 -1
- package/dist/src/lib.js.map +1 -1
- package/dist/src/testing/index.d.ts +1 -1
- package/dist/src/testing/index.d.ts.map +1 -1
- package/dist/src/testing/index.js.map +1 -1
- package/dist/src/utils/client-discovery.d.ts +1 -1
- package/dist/src/utils/client-discovery.d.ts.map +1 -1
- package/dist/src/utils/operations.d.ts +2 -2
- package/dist/src/utils/operations.d.ts.map +1 -1
- package/dist/src/utils/operations.js.map +1 -1
- package/dist/src/utils/parameters.d.ts +5 -5
- package/dist/src/utils/parameters.d.ts.map +1 -1
- package/dist/src/utils/parameters.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +9 -9
- package/src/components/client-context/client-context-declaration.tsx +1 -1
- package/src/components/client-context/client-context-factory.tsx +5 -3
- package/src/components/client-context/client-context-options.tsx +3 -2
- package/src/components/client-context/client-context.tsx +1 -1
- package/src/components/client-context/parametrized-endpoint.tsx +3 -2
- package/src/components/client-directory.tsx +3 -2
- package/src/components/client-operation.tsx +3 -2
- package/src/components/client.tsx +3 -2
- package/src/components/encoding-provider.tsx +1 -1
- package/src/components/http-request-options.tsx +3 -2
- package/src/components/http-request-parameters-expression.tsx +3 -2
- package/src/components/http-request.tsx +3 -2
- package/src/components/http-response.tsx +3 -2
- package/src/components/operation-handlers/index.tsx +1 -1
- package/src/components/operation-handlers/operation-pipeline.tsx +2 -2
- package/src/components/operation-handlers/paging/page-item.tsx +1 -1
- package/src/components/operation-handlers/paging/page-response.tsx +2 -2
- package/src/components/operation-handlers/paging/page-settings.tsx +2 -2
- package/src/components/operation-handlers/paging/paginated-operation-handler.tsx +6 -4
- package/src/components/operation-handlers/paging/request-send.tsx +3 -2
- package/src/components/operation-handlers/paging/response-deserialize.tsx +5 -3
- package/src/components/operation-handlers/paging/util.ts +2 -2
- package/src/components/operation-handlers/types.tsx +1 -1
- package/src/components/operation-options.tsx +2 -2
- package/src/components/operation-parameters.tsx +4 -3
- package/src/components/output.tsx +2 -2
- package/src/components/static-helpers/bytes-encoding.tsx +3 -2
- package/src/components/testing/client-options.tsx +2 -1
- package/src/components/transforms/content-type-encoding-provider.tsx +1 -1
- package/src/components/transforms/data-transform.tsx +2 -2
- package/src/components/transforms/json/json-model-additional-properties-transform.tsx +2 -1
- package/src/components/transforms/json/json-model-property-transform.tsx +3 -2
- package/src/components/transforms/json/json-transform-discriminator.tsx +1 -1
- package/src/components/transforms/json/json-transform.tsx +3 -2
- package/src/components/transforms/json/union-transform.tsx +2 -1
- package/src/components/transforms/multipart/array-part-transform.tsx +2 -2
- package/src/components/transforms/multipart/file-part-transform.tsx +3 -2
- package/src/components/transforms/multipart/multipart-transform.tsx +1 -1
- package/src/components/transforms/multipart/part-transform.tsx +1 -1
- package/src/components/transforms/multipart/simple-part-transform.tsx +3 -2
- package/src/components/transforms/operation-transform-declaration.tsx +4 -3
- package/src/components/transforms/operation-transform-expression.tsx +3 -2
- package/src/components/transforms/scalar-transform.tsx +4 -2
- package/src/components/utils/unpack-model-property.ts +2 -1
- package/src/components/utils/url-template.tsx +1 -1
- package/src/context/encoding/encoding-context.tsx +3 -2
- package/src/emitter.tsx +4 -3
- package/src/lib.ts +2 -1
- package/src/testing/index.ts +2 -1
- package/src/utils/client-discovery.ts +1 -1
- package/src/utils/operations.ts +5 -3
- package/src/utils/parameters.tsx +6 -5
- package/test/e2e/http/payload/pageable/main.test.ts +2 -4
- package/test/e2e/http/type/model/inheritance/single-discriminator/main.test.ts +2 -4
- package/test/e2e/http/type/property/additional-properties/main.test.ts +1 -1
- package/test/e2e/http/type/property/additional-properties/spreads.test.ts +5 -3
- package/test/e2e/http/versioning/added/main.test.ts +1 -2
- package/test/e2e/http/versioning/removed/main.test.ts +1 -1
- package/test/test-host.ts +2 -1
- package/tsconfig.json +1 -0
- package/tsconfig.test.json +1 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@typespec/http-client-js",
|
|
3
|
-
"version": "0.16.1-dev.
|
|
3
|
+
"version": "0.16.1-dev.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"homepage": "https://typespec.io",
|
|
6
6
|
"readme": "https://github.com/microsoft/typespec/blob/main/packages/http-client-js/README.md",
|
|
@@ -28,26 +28,26 @@
|
|
|
28
28
|
"license": "MIT",
|
|
29
29
|
"description": "TypeSpec library for emitting Http Client libraries for JavaScript/TypeScript",
|
|
30
30
|
"peerDependencies": {
|
|
31
|
-
"@typespec/compiler": "^1.14.0 || >= 1.15.0-dev.
|
|
32
|
-
"@typespec/http": "^1.14.0 || >= 1.15.0-dev.
|
|
33
|
-
"@typespec/rest": "^0.84.0 || >= 0.85.0-dev.
|
|
31
|
+
"@typespec/compiler": "^1.14.0 || >= 1.15.0-dev.17",
|
|
32
|
+
"@typespec/http": "^1.14.0 || >= 1.15.0-dev.4",
|
|
33
|
+
"@typespec/rest": "^0.84.0 || >= 0.85.0-dev.1"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@alloy-js/core": "^0.24.1",
|
|
37
37
|
"@alloy-js/typescript": "^0.24.0",
|
|
38
38
|
"@typespec/emitter-framework": "^0.19.0 || >= 0.20.0-dev.2",
|
|
39
|
-
"@typespec/http-client": "^0.16.0 || >= 0.16.1-dev.
|
|
39
|
+
"@typespec/http-client": "^0.16.0 || >= 0.16.1-dev.1",
|
|
40
40
|
"prettier": "^3.9.5"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"@alloy-js/cli": "^0.24.0",
|
|
44
44
|
"@alloy-js/rollup-plugin": "^0.1.2",
|
|
45
45
|
"@types/yargs": "^17.0.35",
|
|
46
|
-
"@typespec/http": "^1.14.0 || >= 1.15.0-dev.
|
|
47
|
-
"@typespec/http-specs": "^0.1.0-alpha.40 || >= 0.1.0-alpha.41-dev.
|
|
48
|
-
"@typespec/spector": "^0.1.0-alpha.27 || >= 0.1.0-alpha.28-dev.
|
|
46
|
+
"@typespec/http": "^1.14.0 || >= 1.15.0-dev.4",
|
|
47
|
+
"@typespec/http-specs": "^0.1.0-alpha.40 || >= 0.1.0-alpha.41-dev.1",
|
|
48
|
+
"@typespec/spector": "^0.1.0-alpha.27 || >= 0.1.0-alpha.28-dev.5",
|
|
49
49
|
"@typespec/ts-http-runtime": "0.3.7",
|
|
50
|
-
"@typespec/tspd": "^0.76.0 || >= 0.77.0-dev.
|
|
50
|
+
"@typespec/tspd": "^0.76.0 || >= 0.77.0-dev.5",
|
|
51
51
|
"@typespec/versioning": "^0.84.0 || >= 0.85.0-dev.0",
|
|
52
52
|
"@vitest/ui": "^4.1.3",
|
|
53
53
|
"change-case": "^5.4.4",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { refkey } from "@alloy-js/core";
|
|
2
2
|
import * as ts from "@alloy-js/typescript";
|
|
3
|
-
import * as cl from "@typespec/http-client";
|
|
3
|
+
import type * as cl from "@typespec/http-client";
|
|
4
4
|
import { httpRuntimeTemplateLib } from "../external-packages/ts-http-runtime.js";
|
|
5
5
|
|
|
6
6
|
export interface ClientContextDeclarationProps {
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
import { Children,
|
|
1
|
+
import type { Children, Refkey } from "@alloy-js/core";
|
|
2
|
+
import { For, List, refkey } from "@alloy-js/core";
|
|
2
3
|
import * as ts from "@alloy-js/typescript";
|
|
3
4
|
import { useTsp } from "@typespec/emitter-framework";
|
|
4
5
|
import { FunctionDeclaration } from "@typespec/emitter-framework/typescript";
|
|
5
|
-
import { HttpAuth
|
|
6
|
-
import
|
|
6
|
+
import type { HttpAuth } from "@typespec/http";
|
|
7
|
+
import { type OAuth2Flow } from "@typespec/http";
|
|
8
|
+
import type * as cl from "@typespec/http-client";
|
|
7
9
|
import { reportDiagnostic } from "../../lib.js";
|
|
8
10
|
import { buildClientParameters } from "../../utils/parameters.jsx";
|
|
9
11
|
import { httpRuntimeTemplateLib } from "../external-packages/ts-http-runtime.js";
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { Children
|
|
1
|
+
import type { Children } from "@alloy-js/core";
|
|
2
|
+
import { For, refkey } from "@alloy-js/core";
|
|
2
3
|
import * as ts from "@alloy-js/typescript";
|
|
3
|
-
import * as cl from "@typespec/http-client";
|
|
4
|
+
import type * as cl from "@typespec/http-client";
|
|
4
5
|
import { httpRuntimeTemplateLib } from "../external-packages/ts-http-runtime.js";
|
|
5
6
|
|
|
6
7
|
export interface ClientContextOptionsDeclarationProps {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type Children } from "@alloy-js/core";
|
|
2
2
|
import * as ts from "@alloy-js/typescript";
|
|
3
|
-
import * as cl from "@typespec/http-client";
|
|
3
|
+
import type * as cl from "@typespec/http-client";
|
|
4
4
|
import { ClientContextDeclaration } from "./client-context-declaration.jsx";
|
|
5
5
|
import { ClientContextFactoryDeclaration } from "./client-context-factory.jsx";
|
|
6
6
|
import { ClientContextOptionsDeclaration } from "./client-context-options.jsx";
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { Refkey } from "@alloy-js/core";
|
|
2
|
+
import { code, For, refkey, StatementList } from "@alloy-js/core";
|
|
2
3
|
import * as ts from "@alloy-js/typescript";
|
|
3
|
-
import { ModelProperty } from "@typespec/compiler";
|
|
4
|
+
import type { ModelProperty } from "@typespec/compiler";
|
|
4
5
|
import { useTransformNamePolicy } from "@typespec/emitter-framework";
|
|
5
6
|
import { getDefaultValue } from "../../utils/parameters.jsx";
|
|
6
7
|
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { Children
|
|
1
|
+
import type { Children } from "@alloy-js/core";
|
|
2
|
+
import { For, SourceDirectory, StatementList } from "@alloy-js/core";
|
|
2
3
|
import * as ts from "@alloy-js/typescript";
|
|
3
|
-
import * as cl from "@typespec/http-client";
|
|
4
|
+
import type * as cl from "@typespec/http-client";
|
|
4
5
|
import { useClientLibrary } from "@typespec/http-client";
|
|
5
6
|
import { ClientContext } from "./client-context/client-context.jsx";
|
|
6
7
|
import { ClientOperations } from "./client-operation.jsx";
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { Refkey } from "@alloy-js/core";
|
|
2
|
+
import { For, List, refkey } from "@alloy-js/core";
|
|
2
3
|
import * as ts from "@alloy-js/typescript";
|
|
3
4
|
import { useTsp } from "@typespec/emitter-framework";
|
|
4
5
|
import { FunctionDeclaration, TypeExpression } from "@typespec/emitter-framework/typescript";
|
|
5
|
-
import { HttpOperation } from "@typespec/http";
|
|
6
|
+
import type { HttpOperation } from "@typespec/http";
|
|
6
7
|
import * as cl from "@typespec/http-client";
|
|
7
8
|
import { reportDiagnostic } from "../lib.js";
|
|
8
9
|
import { getClientcontextDeclarationRef } from "./client-context/client-context-declaration.jsx";
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { Refkey } from "@alloy-js/core";
|
|
2
|
+
import { For, List, refkey } from "@alloy-js/core";
|
|
2
3
|
import * as ts from "@alloy-js/typescript";
|
|
3
4
|
import { useTsp } from "@typespec/emitter-framework";
|
|
4
5
|
import { ClassMethod } from "@typespec/emitter-framework/typescript";
|
|
5
|
-
import * as cl from "@typespec/http-client";
|
|
6
|
+
import type * as cl from "@typespec/http-client";
|
|
6
7
|
import { useClientLibrary } from "@typespec/http-client";
|
|
7
8
|
import { flattenClients } from "../utils/client-discovery.js";
|
|
8
9
|
import { buildClientParameters } from "../utils/parameters.jsx";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type Children } from "@alloy-js/core";
|
|
2
2
|
import { EncodingContext } from "../context/encoding/encoding-context.jsx";
|
|
3
|
-
import { EncodingDefaults } from "../context/encoding/types.js";
|
|
3
|
+
import type { EncodingDefaults } from "../context/encoding/types.js";
|
|
4
4
|
export interface EncodingProviderProps {
|
|
5
5
|
defaults?: EncodingDefaults;
|
|
6
6
|
children?: Children;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { Children,
|
|
1
|
+
import type { Children, Refkey } from "@alloy-js/core";
|
|
2
|
+
import { code } from "@alloy-js/core";
|
|
2
3
|
import * as ts from "@alloy-js/typescript";
|
|
3
|
-
import { HttpOperation } from "@typespec/http";
|
|
4
|
+
import type { HttpOperation } from "@typespec/http";
|
|
4
5
|
import { EncodingProvider } from "./encoding-provider.jsx";
|
|
5
6
|
import { HttpRequestParametersExpression } from "./http-request-parameters-expression.jsx";
|
|
6
7
|
import { OperationTransformExpression } from "./transforms/operation-transform-expression.jsx";
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { Children
|
|
1
|
+
import type { Children } from "@alloy-js/core";
|
|
2
|
+
import { code, For, List, NamePolicyContext, useNamePolicy } from "@alloy-js/core";
|
|
2
3
|
import * as ts from "@alloy-js/typescript";
|
|
3
4
|
import { useTransformNamePolicy } from "@typespec/emitter-framework";
|
|
4
|
-
import { HttpOperation, HttpProperty } from "@typespec/http";
|
|
5
|
+
import type { HttpOperation, HttpProperty } from "@typespec/http";
|
|
5
6
|
import { getDefaultValue, hasDefaultValue } from "../utils/parameters.jsx";
|
|
6
7
|
import { JsonTransform } from "./transforms/json/json-transform.jsx";
|
|
7
8
|
export interface HttpRequestParametersExpressionProps {
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { Children,
|
|
1
|
+
import type { Children, Refkey } from "@alloy-js/core";
|
|
2
|
+
import { code, List, refkey, StatementList } from "@alloy-js/core";
|
|
2
3
|
import * as ts from "@alloy-js/typescript";
|
|
3
4
|
import { Reference } from "@alloy-js/typescript";
|
|
4
|
-
import { HttpOperation } from "@typespec/http";
|
|
5
|
+
import type { HttpOperation } from "@typespec/http";
|
|
5
6
|
import { EncodingProvider } from "./encoding-provider.jsx";
|
|
6
7
|
import { uriTemplateLib } from "./external-packages/uri-template.js";
|
|
7
8
|
import { HttpRequestOptions } from "./http-request-options.js";
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { Children,
|
|
1
|
+
import type { Children, Refkey } from "@alloy-js/core";
|
|
2
|
+
import { code, For, List } from "@alloy-js/core";
|
|
2
3
|
import { isVoidType } from "@typespec/compiler";
|
|
3
4
|
import { useTsp } from "@typespec/emitter-framework";
|
|
4
|
-
import { HttpOperation } from "@typespec/http";
|
|
5
|
+
import type { HttpOperation } from "@typespec/http";
|
|
5
6
|
import { getCreateRestErrorRefkey } from "./static-helpers/rest-error.jsx";
|
|
6
7
|
import { ContentTypeEncodingProvider } from "./transforms/content-type-encoding-provider.jsx";
|
|
7
8
|
import { JsonTransform } from "./transforms/json/json-transform.jsx";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export * from "./operation-pipeline.jsx";
|
|
2
|
-
export * from "./types.jsx";
|
|
2
|
+
export type * from "./types.jsx";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { refkey } from "@alloy-js/core";
|
|
2
|
-
import { HttpOperation } from "@typespec/http";
|
|
2
|
+
import type { HttpOperation } from "@typespec/http";
|
|
3
3
|
import { ClientOperation as DefaultOperationComponent } from "../client-operation.jsx";
|
|
4
|
-
import { OperationHandlerPipeline } from "./types.jsx";
|
|
4
|
+
import type { OperationHandlerPipeline } from "./types.jsx";
|
|
5
5
|
|
|
6
6
|
export interface OperationPipelineProps {
|
|
7
7
|
httpOperation: HttpOperation;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { For, refkey } from "@alloy-js/core";
|
|
2
2
|
import * as ts from "@alloy-js/typescript";
|
|
3
|
-
import { PagingOperation, PagingProperty } from "@typespec/compiler";
|
|
3
|
+
import type { PagingOperation, PagingProperty } from "@typespec/compiler";
|
|
4
4
|
import * as ef from "@typespec/emitter-framework/typescript";
|
|
5
|
-
import { HttpOperation } from "@typespec/http";
|
|
5
|
+
import type { HttpOperation } from "@typespec/http";
|
|
6
6
|
export interface PageResponseProps {
|
|
7
7
|
operation: HttpOperation;
|
|
8
8
|
pagingOperation: PagingOperation;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { For, refkey } from "@alloy-js/core";
|
|
2
2
|
import * as ts from "@alloy-js/typescript";
|
|
3
|
-
import { PagingOperation, PagingProperty } from "@typespec/compiler";
|
|
3
|
+
import type { PagingOperation, PagingProperty } from "@typespec/compiler";
|
|
4
4
|
import * as ef from "@typespec/emitter-framework/typescript";
|
|
5
|
-
import { HttpOperation } from "@typespec/http";
|
|
5
|
+
import type { HttpOperation } from "@typespec/http";
|
|
6
6
|
export interface PageSettingsProps {
|
|
7
7
|
operation: HttpOperation;
|
|
8
8
|
pagingOperation: PagingOperation;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { Children
|
|
1
|
+
import type { Children } from "@alloy-js/core";
|
|
2
|
+
import { code, List, refkey } from "@alloy-js/core";
|
|
2
3
|
import * as ts from "@alloy-js/typescript";
|
|
3
4
|
import { useTsp } from "@typespec/emitter-framework";
|
|
4
5
|
import { FunctionDeclaration } from "@typespec/emitter-framework/typescript";
|
|
5
|
-
import { HttpOperation } from "@typespec/http";
|
|
6
|
+
import type { HttpOperation } from "@typespec/http";
|
|
6
7
|
import * as cl from "@typespec/http-client";
|
|
7
8
|
import { reportDiagnostic } from "../../../lib.js";
|
|
8
9
|
import { getClientcontextDeclarationRef } from "../../client-context/client-context-declaration.jsx";
|
|
@@ -24,8 +25,9 @@ import {
|
|
|
24
25
|
getHttpRequestDeserializeRefkey,
|
|
25
26
|
HttpResponseDeserialize,
|
|
26
27
|
} from "../paging/response-deserialize.jsx";
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
28
|
+
import type { PagingDetail } from "../paging/util.js";
|
|
29
|
+
import { extractPagingDetail } from "../paging/util.js";
|
|
30
|
+
import type { OperationHandler } from "../types.js";
|
|
29
31
|
|
|
30
32
|
export const PaginatedOperationHandler: OperationHandler = {
|
|
31
33
|
canHandle(httpOperation: HttpOperation): boolean {
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { Refkey } from "@alloy-js/core";
|
|
2
|
+
import { List, StatementList, code, refkey } from "@alloy-js/core";
|
|
2
3
|
import * as ts from "@alloy-js/typescript";
|
|
3
4
|
import { Reference } from "@alloy-js/typescript";
|
|
4
5
|
import { FunctionDeclaration } from "@typespec/emitter-framework/typescript";
|
|
5
|
-
import { HttpOperation } from "@typespec/http";
|
|
6
|
+
import type { HttpOperation } from "@typespec/http";
|
|
6
7
|
import * as cl from "@typespec/http-client";
|
|
7
8
|
import { getClientcontextDeclarationRef } from "../../client-context/client-context-declaration.jsx";
|
|
8
9
|
import { HttpRequestOptions } from "../../http-request-options.jsx";
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
import { Children,
|
|
1
|
+
import type { Children, Refkey } from "@alloy-js/core";
|
|
2
|
+
import { code, List, refkey } from "@alloy-js/core";
|
|
2
3
|
import * as ts from "@alloy-js/typescript";
|
|
3
4
|
import { FunctionDeclaration } from "@typespec/emitter-framework/typescript";
|
|
4
|
-
import { HttpOperation } from "@typespec/http";
|
|
5
|
+
import type { HttpOperation } from "@typespec/http";
|
|
5
6
|
import { httpRuntimeTemplateLib } from "../../external-packages/ts-http-runtime.js";
|
|
6
|
-
import { HttpResponseProps
|
|
7
|
+
import type { HttpResponseProps } from "../../http-response.jsx";
|
|
8
|
+
import { HttpResponses } from "../../http-response.jsx";
|
|
7
9
|
import { getOperationOptionsTypeRefkey } from "../../operation-options.jsx";
|
|
8
10
|
import { getCreateRestErrorRefkey } from "../../static-helpers/rest-error.jsx";
|
|
9
11
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ModelProperty, PagingOperation } from "@typespec/compiler";
|
|
2
|
-
import { HttpOperation } from "@typespec/http";
|
|
1
|
+
import type { ModelProperty, PagingOperation } from "@typespec/compiler";
|
|
2
|
+
import type { HttpOperation } from "@typespec/http";
|
|
3
3
|
|
|
4
4
|
export interface PagingDetail {
|
|
5
5
|
// Only support the nextLink or continuationToken
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { For, refkey } from "@alloy-js/core";
|
|
2
2
|
import * as ts from "@alloy-js/typescript";
|
|
3
|
-
import { ModelProperty } from "@typespec/compiler";
|
|
3
|
+
import type { ModelProperty } from "@typespec/compiler";
|
|
4
4
|
import * as ef from "@typespec/emitter-framework/typescript";
|
|
5
|
-
import { HttpOperation } from "@typespec/http";
|
|
5
|
+
import type { HttpOperation } from "@typespec/http";
|
|
6
6
|
import { hasDefaultValue } from "../utils/parameters.jsx";
|
|
7
7
|
import { getOperationOptionsInterfaceRefkey } from "./static-helpers/interfaces.jsx";
|
|
8
8
|
export interface OperationOptionsProps {
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { Refkey
|
|
2
|
-
import
|
|
1
|
+
import type { Refkey } from "@alloy-js/core";
|
|
2
|
+
import { refkey } from "@alloy-js/core";
|
|
3
|
+
import type * as ts from "@alloy-js/typescript";
|
|
3
4
|
import { useTransformNamePolicy } from "@typespec/emitter-framework";
|
|
4
5
|
import * as ef from "@typespec/emitter-framework/typescript";
|
|
5
|
-
import { HttpOperation } from "@typespec/http";
|
|
6
|
+
import type { HttpOperation } from "@typespec/http";
|
|
6
7
|
import { hasDefaultValue } from "../utils/parameters.jsx";
|
|
7
8
|
import { getOperationOptionsTypeRefkey } from "./operation-options.jsx";
|
|
8
9
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Children } from "@alloy-js/core/jsx-runtime";
|
|
1
|
+
import type { Children } from "@alloy-js/core/jsx-runtime";
|
|
2
2
|
import * as ts from "@alloy-js/typescript";
|
|
3
|
-
import { Program } from "@typespec/compiler";
|
|
3
|
+
import type { Program } from "@typespec/compiler";
|
|
4
4
|
import { Output as EFOutput, TransformNamePolicyContext } from "@typespec/emitter-framework";
|
|
5
5
|
import { ClientLibrary } from "@typespec/http-client/components";
|
|
6
6
|
import { EncodingProvider } from "./encoding-provider.jsx";
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import type { Refkey } from "@alloy-js/core";
|
|
2
|
+
import { code, refkey } from "@alloy-js/core";
|
|
3
|
+
import type { Children } from "@alloy-js/core/jsx-runtime";
|
|
3
4
|
import * as ts from "@alloy-js/typescript";
|
|
4
5
|
|
|
5
6
|
export function getEncodeUint8ArrayRef(): Refkey {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type Children } from "@alloy-js/core";
|
|
2
|
-
import { EncodingDefaults } from "../../context/encoding/types.js";
|
|
2
|
+
import type { EncodingDefaults } from "../../context/encoding/types.js";
|
|
3
3
|
import { EncodingProvider } from "../encoding-provider.jsx";
|
|
4
4
|
|
|
5
5
|
export interface ContentTypeEncodingProviderProps {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Children, Refkey } from "@alloy-js/core";
|
|
2
|
-
import { EncodeData, ModelProperty, Scalar } from "@typespec/compiler";
|
|
1
|
+
import type { Children, Refkey } from "@alloy-js/core";
|
|
2
|
+
import type { EncodeData, ModelProperty, Scalar } from "@typespec/compiler";
|
|
3
3
|
import { useTsp } from "@typespec/emitter-framework";
|
|
4
4
|
import { reportDiagnostic } from "../../lib.js";
|
|
5
5
|
import { unpackProperty } from "../utils/unpack-model-property.js";
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { Children
|
|
1
|
+
import type { Children } from "@alloy-js/core";
|
|
2
|
+
import { code, mapJoin } from "@alloy-js/core";
|
|
2
3
|
import * as ts from "@alloy-js/typescript";
|
|
3
4
|
import type { Model } from "@typespec/compiler";
|
|
4
5
|
import { useTsp } from "@typespec/emitter-framework";
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { Children,
|
|
1
|
+
import type { Children, Refkey } from "@alloy-js/core";
|
|
2
|
+
import { code, NamePolicyContext } from "@alloy-js/core";
|
|
2
3
|
import * as ts from "@alloy-js/typescript";
|
|
3
|
-
import { ModelProperty } from "@typespec/compiler";
|
|
4
|
+
import type { ModelProperty } from "@typespec/compiler";
|
|
4
5
|
import { useTsp } from "@typespec/emitter-framework";
|
|
5
6
|
import { unpackProperty } from "../../utils/unpack-model-property.js";
|
|
6
7
|
import { ScalarDataTransform } from "../data-transform.jsx";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { code, mapJoin, refkey, useNamePolicy, type Children, type Refkey } from "@alloy-js/core";
|
|
2
2
|
import * as ts from "@alloy-js/typescript";
|
|
3
|
-
import { Discriminator, Model, Union } from "@typespec/compiler";
|
|
3
|
+
import type { Discriminator, Model, Union } from "@typespec/compiler";
|
|
4
4
|
import { useTsp } from "@typespec/emitter-framework";
|
|
5
5
|
import { JsonTransform } from "./json-transform.jsx";
|
|
6
6
|
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import type { Refkey } from "@alloy-js/core";
|
|
2
|
+
import { code } from "@alloy-js/core";
|
|
3
|
+
import type { Children } from "@alloy-js/core/jsx-runtime";
|
|
3
4
|
import type { Type } from "@typespec/compiler";
|
|
4
5
|
import { useTsp } from "@typespec/emitter-framework";
|
|
5
6
|
import { ScalarDataTransform } from "../data-transform.jsx";
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { Children,
|
|
1
|
+
import type { Children, Refkey } from "@alloy-js/core";
|
|
2
|
+
import { code, refkey } from "@alloy-js/core";
|
|
2
3
|
import * as ts from "@alloy-js/typescript";
|
|
3
4
|
import type { Union } from "@typespec/compiler";
|
|
4
5
|
import { useTsp } from "@typespec/emitter-framework";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { code } from "@alloy-js/core";
|
|
2
|
-
import { Children } from "@alloy-js/core/jsx-runtime";
|
|
2
|
+
import type { Children } from "@alloy-js/core/jsx-runtime";
|
|
3
3
|
import * as ts from "@alloy-js/typescript";
|
|
4
|
-
import { HttpOperationPart } from "@typespec/http";
|
|
4
|
+
import type { HttpOperationPart } from "@typespec/http";
|
|
5
5
|
import { HttpPartTransform } from "./part-transform.jsx";
|
|
6
6
|
|
|
7
7
|
export interface ArrayPartTransformProps {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { Children
|
|
1
|
+
import type { Children } from "@alloy-js/core";
|
|
2
|
+
import { code } from "@alloy-js/core";
|
|
2
3
|
import * as ts from "@alloy-js/typescript";
|
|
3
|
-
import { HttpOperationPart } from "@typespec/http";
|
|
4
|
+
import type { HttpOperationPart } from "@typespec/http";
|
|
4
5
|
import { getCreateFilePartDescriptorReference } from "../../static-helpers/multipart-helpers.jsx";
|
|
5
6
|
|
|
6
7
|
export interface FilePartTransformProps {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { For } from "@alloy-js/core";
|
|
2
2
|
import { useTransformNamePolicy, useTsp } from "@typespec/emitter-framework";
|
|
3
|
-
import { HttpOperationMultipartBody } from "@typespec/http";
|
|
3
|
+
import type { HttpOperationMultipartBody } from "@typespec/http";
|
|
4
4
|
import { reportDiagnostic } from "../../../lib.js";
|
|
5
5
|
import { HttpPartTransform } from "./part-transform.jsx";
|
|
6
6
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type Children } from "@alloy-js/core";
|
|
2
|
-
import { HttpOperationPart } from "@typespec/http";
|
|
2
|
+
import type { HttpOperationPart } from "@typespec/http";
|
|
3
3
|
import { ArrayPartTransform } from "./array-part-transform.jsx";
|
|
4
4
|
import { FilePartTransform } from "./file-part-transform.jsx";
|
|
5
5
|
import { SimplePartTransform } from "./simple-part-transform.jsx";
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { Children
|
|
1
|
+
import type { Children } from "@alloy-js/core";
|
|
2
|
+
import { code, List } from "@alloy-js/core";
|
|
2
3
|
import * as ts from "@alloy-js/typescript";
|
|
3
|
-
import { HttpOperationPart } from "@typespec/http";
|
|
4
|
+
import type { HttpOperationPart } from "@typespec/http";
|
|
4
5
|
import { JsonTransform } from "../json/json-transform.jsx";
|
|
5
6
|
|
|
6
7
|
export interface SimplePartTransformProps {
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { Refkey
|
|
1
|
+
import type { Refkey } from "@alloy-js/core";
|
|
2
|
+
import { refkey } from "@alloy-js/core";
|
|
2
3
|
import * as ts from "@alloy-js/typescript";
|
|
3
4
|
import * as ef from "@typespec/emitter-framework/typescript";
|
|
4
|
-
import { HttpOperationBody } from "@typespec/http";
|
|
5
|
-
import { ClientOperation } from "@typespec/http-client";
|
|
5
|
+
import type { HttpOperationBody } from "@typespec/http";
|
|
6
|
+
import type { ClientOperation } from "@typespec/http-client";
|
|
6
7
|
import { JsonTransform } from "./json/json-transform.jsx";
|
|
7
8
|
|
|
8
9
|
export interface TransformDeclarationProps {
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import * as ts from "@alloy-js/typescript";
|
|
2
2
|
import type { Type } from "@typespec/compiler";
|
|
3
|
-
import { HasName
|
|
4
|
-
import {
|
|
3
|
+
import type { HasName } from "@typespec/emitter-framework";
|
|
4
|
+
import { TransformNamePolicyContext, useTsp } from "@typespec/emitter-framework";
|
|
5
|
+
import type { HttpOperation } from "@typespec/http";
|
|
5
6
|
import { reportDiagnostic } from "../../lib.js";
|
|
6
7
|
import { ContentTypeEncodingProvider } from "./content-type-encoding-provider.jsx";
|
|
7
8
|
import { JsonTransform } from "./json/json-transform.jsx";
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import { Children,
|
|
2
|
-
import {
|
|
1
|
+
import type { Children, Refkey } from "@alloy-js/core";
|
|
2
|
+
import { code } from "@alloy-js/core";
|
|
3
|
+
import type { BytesKnownEncoding, EncodeData, Scalar } from "@typespec/compiler";
|
|
4
|
+
import { NoTarget } from "@typespec/compiler";
|
|
3
5
|
import { useTsp } from "@typespec/emitter-framework";
|
|
4
6
|
import * as ef from "@typespec/emitter-framework/typescript";
|
|
5
7
|
import { useDefaultEncoding } from "../../context/encoding/encoding-context.jsx";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as ts from "@alloy-js/typescript";
|
|
2
|
-
import { ModelProperty } from "@typespec/compiler";
|
|
2
|
+
import type { ModelProperty } from "@typespec/compiler";
|
|
3
3
|
import { useTransformNamePolicy } from "@typespec/emitter-framework";
|
|
4
4
|
import { uriTemplateLib } from "../external-packages/uri-template.js";
|
|
5
5
|
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { ComponentContext
|
|
1
|
+
import type { ComponentContext } from "@alloy-js/core";
|
|
2
|
+
import { createNamedContext, useContext } from "@alloy-js/core";
|
|
2
3
|
import { NoTarget } from "@typespec/compiler";
|
|
3
4
|
import { useTsp } from "@typespec/emitter-framework";
|
|
4
5
|
import { reportDiagnostic } from "../../lib.js";
|
|
5
|
-
import { EncodingDefaults } from "./types.js";
|
|
6
|
+
import type { EncodingDefaults } from "./types.js";
|
|
6
7
|
|
|
7
8
|
export const EncodingContext: ComponentContext<EncodingDefaults> =
|
|
8
9
|
createNamedContext<EncodingDefaults>("Encoding");
|
package/src/emitter.tsx
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { Children
|
|
1
|
+
import type { Children } from "@alloy-js/core";
|
|
2
|
+
import { SourceDirectory } from "@alloy-js/core";
|
|
2
3
|
import * as ts from "@alloy-js/typescript";
|
|
3
|
-
import { EmitContext } from "@typespec/compiler";
|
|
4
|
+
import type { EmitContext } from "@typespec/compiler";
|
|
4
5
|
import {
|
|
5
6
|
Experimental_ComponentOverrides,
|
|
6
7
|
Experimental_ComponentOverridesConfig,
|
|
@@ -17,7 +18,7 @@ import { Interfaces } from "./components/static-helpers/interfaces.jsx";
|
|
|
17
18
|
import { MultipartHelpers } from "./components/static-helpers/multipart-helpers.jsx";
|
|
18
19
|
import { PagingHelpers } from "./components/static-helpers/paging-helper.jsx";
|
|
19
20
|
import { RestError } from "./components/static-helpers/rest-error.jsx";
|
|
20
|
-
import { JsClientEmitterOptions } from "./lib.js";
|
|
21
|
+
import type { JsClientEmitterOptions } from "./lib.js";
|
|
21
22
|
|
|
22
23
|
/**
|
|
23
24
|
* Main function to handle the emission process.
|
package/src/lib.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { JSONSchemaType } from "@typespec/compiler";
|
|
2
|
+
import { createTypeSpecLibrary } from "@typespec/compiler";
|
|
2
3
|
|
|
3
4
|
export interface JsClientEmitterOptions {
|
|
4
5
|
"package-name"?: string;
|
package/src/testing/index.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { resolvePath } from "@typespec/compiler";
|
|
2
|
-
import {
|
|
2
|
+
import type { TypeSpecTestLibrary } from "@typespec/compiler/testing";
|
|
3
|
+
import { createTestLibrary } from "@typespec/compiler/testing";
|
|
3
4
|
import { fileURLToPath } from "url";
|
|
4
5
|
|
|
5
6
|
/** @deprecated Use `createTester` from `@typespec/compiler/testing` instead */
|