Skip to content

Commit fd6ee00

Browse files
committed
defer type imports
1 parent f3e9a57 commit fd6ee00

File tree

45 files changed

+2694
-2860
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+2694
-2860
lines changed

private/my-local-model-schema/src/XYZServiceClient.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -65,11 +65,7 @@ import {
6565
resolveClientEndpointParameters,
6666
} from "./endpoint/EndpointParameters";
6767
import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
68-
import {
69-
type RuntimeExtension,
70-
type RuntimeExtensionsConfig,
71-
resolveRuntimeExtensions,
72-
} from "./runtimeExtensions";
68+
import { type RuntimeExtension, type RuntimeExtensionsConfig, resolveRuntimeExtensions } from "./runtimeExtensions";
7369

7470
export { __Client };
7571

private/my-local-model-schema/src/commands/TradeEventStreamCommand.ts

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,7 @@ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
66
import { commonParams } from "../endpoint/EndpointParameters";
77
import type { TradeEventStreamRequest, TradeEventStreamResponse } from "../models/models_0";
88
import { TradeEventStream } from "../schemas/schemas_0";
9-
import type {
10-
ServiceInputTypes,
11-
ServiceOutputTypes,
12-
XYZServiceClientResolvedConfig,
13-
} from "../XYZServiceClient";
9+
import type { ServiceInputTypes, ServiceOutputTypes, XYZServiceClientResolvedConfig } from "../XYZServiceClient";
1410

1511
/**
1612
* @public
@@ -87,9 +83,7 @@ export class TradeEventStreamCommand extends $Command
8783
>()
8884
.ep(commonParams)
8985
.m(function (this: any, Command: any, cs: any, config: XYZServiceClientResolvedConfig, o: any) {
90-
return [
91-
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
92-
];
86+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
9387
})
9488
.s("XYZService", "TradeEventStream", {
9589
/**

private/my-local-model-schema/src/endpoint/EndpointParameters.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,16 @@ export interface ClientInputEndpointParameters {
88
endpoint?: string | Provider<string> | Endpoint | Provider<Endpoint> | EndpointV2 | Provider<EndpointV2>;
99
}
1010

11+
/**
12+
* @internal
13+
*/
1114
export type ClientResolvedEndpointParameters = Omit<ClientInputEndpointParameters, "endpoint"> & {
1215
defaultSigningName: string;
1316
};
1417

18+
/**
19+
* @internal
20+
*/
1521
export const resolveClientEndpointParameters = <T>(
1622
options: T & ClientInputEndpointParameters
1723
): T & ClientResolvedEndpointParameters => {
@@ -20,6 +26,9 @@ export const resolveClientEndpointParameters = <T>(
2026
});
2127
};
2228

29+
/**
30+
* @internal
31+
*/
2332
export const commonParams = {
2433
endpoint: { type: "builtInParams", name: "endpoint" },
2534
} as const;

private/my-local-model-schema/src/extensionConfiguration.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,6 @@ import type { HttpAuthExtensionConfiguration } from "./auth/httpAuthExtensionCon
88
* @internal
99
*/
1010
export interface XYZServiceExtensionConfiguration
11-
extends HttpHandlerExtensionConfiguration, DefaultExtensionConfiguration, HttpAuthExtensionConfiguration {}
11+
extends HttpHandlerExtensionConfiguration,
12+
DefaultExtensionConfiguration,
13+
HttpAuthExtensionConfiguration {}

private/my-local-model-schema/src/models/XYZServiceSyntheticServiceException.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
// smithy-typescript generated code
2-
import { type ServiceExceptionOptions as __ServiceExceptionOptions, ServiceException as __ServiceException } from "@smithy/smithy-client";
2+
import {
3+
type ServiceExceptionOptions as __ServiceExceptionOptions,
4+
ServiceException as __ServiceException,
5+
} from "@smithy/smithy-client";
36

47
export type { __ServiceExceptionOptions };
58

private/my-local-model-schema/src/runtimeConfig.shared.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export const getRuntimeConfig = (config: XYZServiceClientConfig) => {
2929
identityProvider: (ipc: IdentityProviderConfig) =>
3030
ipc.getIdentityProvider("smithy.api#noAuth") || (async () => ({})),
3131
signer: new NoAuthSigner(),
32-
}
32+
},
3333
],
3434
logger: config?.logger ?? new NoOpLogger(),
3535
protocol: config?.protocol ?? new SmithyRpcV2CborProtocol({ defaultNamespace: "org.xyz.v1" }),

private/my-local-model-schema/src/schemas/schemas_0.ts

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,7 @@ const n0 = "org.xyz.v1";
3030

3131
// smithy-typescript generated code
3232
import { TypeRegistry } from "@smithy/core/schema";
33-
import type {
34-
StaticErrorSchema,
35-
StaticOperationSchema,
36-
StaticStructureSchema,
37-
} from "@smithy/types";
33+
import type { StaticErrorSchema, StaticOperationSchema, StaticStructureSchema } from "@smithy/types";
3834

3935
import {
4036
CodedThrottlingError as __CodedThrottlingError,
@@ -43,7 +39,9 @@ import {
4339
RetryableError as __RetryableError,
4440
XYZServiceServiceException as __XYZServiceServiceException,
4541
} from "../models/errors";
46-
import { XYZServiceSyntheticServiceException as __XYZServiceSyntheticServiceException } from "../models/XYZServiceSyntheticServiceException";
42+
import {
43+
XYZServiceSyntheticServiceException as __XYZServiceSyntheticServiceException,
44+
} from "../models/XYZServiceSyntheticServiceException";
4745

4846
/* eslint no-var: 0 */
4947
export var Alpha: StaticStructureSchema = [3, n0, _A,

private/my-local-model/src/XYZService.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,7 @@
22
import { createAggregatedClient } from "@smithy/smithy-client";
33
import type { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
44

5-
import {
6-
GetNumbersCommand,
7-
GetNumbersCommandInput,
8-
GetNumbersCommandOutput,
9-
} from "./commands/GetNumbersCommand";
5+
import { GetNumbersCommand, GetNumbersCommandInput, GetNumbersCommandOutput } from "./commands/GetNumbersCommand";
106
import {
117
TradeEventStreamCommand,
128
TradeEventStreamCommandInput,

private/my-local-model/src/XYZServiceClient.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,7 @@ import {
6161
resolveClientEndpointParameters,
6262
} from "./endpoint/EndpointParameters";
6363
import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
64-
import {
65-
type RuntimeExtension,
66-
type RuntimeExtensionsConfig,
67-
resolveRuntimeExtensions,
68-
} from "./runtimeExtensions";
64+
import { type RuntimeExtension, type RuntimeExtensionsConfig, resolveRuntimeExtensions } from "./runtimeExtensions";
6965

7066
export { __Client };
7167

private/my-local-model/src/commands/TradeEventStreamCommand.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,7 @@ import {
1212
TradeEventStreamResponseFilterSensitiveLog,
1313
} from "../models/models_0";
1414
import { de_TradeEventStreamCommand, se_TradeEventStreamCommand } from "../protocols/Rpcv2cbor";
15-
import type {
16-
ServiceInputTypes,
17-
ServiceOutputTypes,
18-
XYZServiceClientResolvedConfig,
19-
} from "../XYZServiceClient";
15+
import type { ServiceInputTypes, ServiceOutputTypes, XYZServiceClientResolvedConfig } from "../XYZServiceClient";
2016

2117
/**
2218
* @public

0 commit comments

Comments
 (0)