diff --git a/.chronus/changes/internal-type-imports-2026-7-21.md b/.chronus/changes/internal-type-imports-2026-7-21.md new file mode 100644 index 000000000..eb26782aa --- /dev/null +++ b/.chronus/changes/internal-type-imports-2026-7-21.md @@ -0,0 +1,19 @@ +--- +changeKind: internal +packages: + - "@alloy-js/babel-plugin" + - "@alloy-js/cli" + - "@alloy-js/core" + - "@alloy-js/csharp" + - "@alloy-js/go" + - "@alloy-js/java" + - "@alloy-js/json" + - "@alloy-js/markdown" + - "@alloy-js/msbuild" + - "@alloy-js/python" + - "@alloy-js/rollup-plugin" + - "@alloy-js/typescript" + - "@alloy-js/typespec" +--- + +Adopt explicit `import type` / `export type` across the codebase (enforced via TypeScript's `verbatimModuleSyntax`) and re-enable Babel 8's default `onlyRemoveTypeImports: true` by dropping the stopgap override in the CLI and rollup-plugin builds. diff --git a/packages/babel-plugin-alloy/src/index.ts b/packages/babel-plugin-alloy/src/index.ts index 354d65eb5..72109dc73 100644 --- a/packages/babel-plugin-alloy/src/index.ts +++ b/packages/babel-plugin-alloy/src/index.ts @@ -1,4 +1,4 @@ -import { NodePath } from "@babel/core"; +import type { NodePath } from "@babel/core"; import SyntaxJSX from "@babel/plugin-syntax-jsx"; import * as t from "@babel/types"; diff --git a/packages/babel-plugin-alloy/src/transform.ts b/packages/babel-plugin-alloy/src/transform.ts index 1dbeb2be4..5b0895da5 100644 --- a/packages/babel-plugin-alloy/src/transform.ts +++ b/packages/babel-plugin-alloy/src/transform.ts @@ -1,4 +1,4 @@ -import { NodePath } from "@babel/core"; +import type { NodePath } from "@babel/core"; import * as t from "@babel/types"; interface Options { alloyModuleName: string | undefined; diff --git a/packages/cli/src/babel.ts b/packages/cli/src/babel.ts index eadedbe10..86cd0c07f 100644 --- a/packages/cli/src/babel.ts +++ b/packages/cli/src/babel.ts @@ -15,7 +15,7 @@ export async function buildFile(filename: string, options: BuildOptions) { return babel.transformFileAsync(filename, { sourceMaps: options.sourceMaps, presets: [ - [typescriptPreset, { onlyRemoveTypeImports: false }], + typescriptPreset, [alloyPreset, { addSourceInfo: options.addSourceInfo }], ], }); diff --git a/packages/core/src/binder.ts b/packages/core/src/binder.ts index cc8dce027..889783ea0 100644 --- a/packages/core/src/binder.ts +++ b/packages/core/src/binder.ts @@ -1,4 +1,5 @@ -import { computed, Ref, ShallowRef, shallowRef } from "@vue/reactivity"; +import type { Ref, ShallowRef } from "@vue/reactivity"; +import { computed, shallowRef } from "@vue/reactivity"; import { useBinder } from "./context/binder.js"; import { useMemberContext } from "./context/member-scope.js"; @@ -6,16 +7,9 @@ import { useScope } from "./context/scope.js"; import { debug, TracePhase } from "./debug/index.js"; import { emitDiagnostic, type DiagnosticHandle } from "./diagnostics.js"; import { effect, onCleanup } from "./reactivity.js"; -import { - inspectRefkey, - isMemberRefkey, - MemberRefkey, - refkey, - Refkey, - Refkeyable, - toRefkey, -} from "./refkey.js"; -import { OutputScope } from "./symbols/output-scope.js"; +import type { MemberRefkey, Refkey, Refkeyable } from "./refkey.js"; +import { inspectRefkey, isMemberRefkey, refkey, toRefkey } from "./refkey.js"; +import type { OutputScope } from "./symbols/output-scope.js"; import { type OutputSymbol } from "./symbols/output-symbol.js"; import { formatRefkeys, formatSymbolName } from "./tracer.js"; export type Metadata = object; diff --git a/packages/core/src/components/AccessExpression.test.tsx b/packages/core/src/components/AccessExpression.test.tsx index 80a75877a..7518c7ca7 100644 --- a/packages/core/src/components/AccessExpression.test.tsx +++ b/packages/core/src/components/AccessExpression.test.tsx @@ -1,11 +1,9 @@ import { describe, expect, it } from "vitest"; -import { - BasePartProps, - createAccessExpression, -} from "../components/AccessExpression.jsx"; +import type { BasePartProps } from "../components/AccessExpression.jsx"; +import { createAccessExpression } from "../components/AccessExpression.jsx"; import { code } from "../index.js"; -import { Children } from "../runtime/component.js"; +import type { Children } from "../runtime/component.js"; interface TestPartProps extends BasePartProps { name?: string; diff --git a/packages/core/src/components/AccessExpression.tsx b/packages/core/src/components/AccessExpression.tsx index 0a6f239f2..a11b4ec46 100644 --- a/packages/core/src/components/AccessExpression.tsx +++ b/packages/core/src/components/AccessExpression.tsx @@ -1,12 +1,14 @@ -import { +import type { Children, - childrenArray, ComponentCreator, ComponentDefinition, - computed, - isComponentCreator, OutputSymbol, Refkeyable, +} from "../index.js"; +import { + childrenArray, + computed, + isComponentCreator, symbolForRefkey, takeSymbols, } from "../index.js"; diff --git a/packages/core/src/components/AppendFile.tsx b/packages/core/src/components/AppendFile.tsx index 69c40fc0b..713e3c08e 100644 --- a/packages/core/src/components/AppendFile.tsx +++ b/packages/core/src/components/AppendFile.tsx @@ -5,7 +5,8 @@ import { useContext } from "../context.js"; import { SourceDirectoryContext } from "../context/source-directory.js"; import { emitDiagnostic } from "../diagnostics.js"; import { createFileResource } from "../resource.js"; -import { Children, isComponentCreator } from "../runtime/component.js"; +import type { Children } from "../runtime/component.js"; +import { isComponentCreator } from "../runtime/component.js"; import { childrenArray } from "../utils.jsx"; import { SourceFile } from "./SourceFile.jsx"; diff --git a/packages/core/src/components/CopyFile.tsx b/packages/core/src/components/CopyFile.tsx index 43687bede..6996e7689 100644 --- a/packages/core/src/components/CopyFile.tsx +++ b/packages/core/src/components/CopyFile.tsx @@ -2,7 +2,7 @@ import { join } from "pathe"; import { useContext } from "../context.js"; import { SourceDirectoryContext } from "../context/source-directory.js"; -import { CopyFileContext } from "../context/source-file.js"; +import type { CopyFileContext } from "../context/source-file.js"; import { getContext } from "../reactivity.js"; export interface CopyFileProps { diff --git a/packages/core/src/components/Declaration.tsx b/packages/core/src/components/Declaration.tsx index 74e498734..c6d701a0f 100644 --- a/packages/core/src/components/Declaration.tsx +++ b/packages/core/src/components/Declaration.tsx @@ -4,11 +4,11 @@ import { BinderContext } from "../context/binder.js"; import { DeclarationContext } from "../context/declaration.js"; import { useScope } from "../context/scope.js"; import { onCleanup } from "../reactivity.js"; -import { Namekey, Refkey } from "../refkey.js"; +import type { Namekey, Refkey } from "../refkey.js"; import type { Children } from "../runtime/component.js"; import { BasicScope } from "../symbols/basic-scope.js"; import { BasicSymbol } from "../symbols/basic-symbol.js"; -import { OutputSymbol } from "../symbols/output-symbol.js"; +import type { OutputSymbol } from "../symbols/output-symbol.js"; /** * Create a declaration by providing an already created symbol. The symbol is diff --git a/packages/core/src/components/For.tsx b/packages/core/src/components/For.tsx index 2300b38ff..26fa36437 100644 --- a/packages/core/src/components/For.tsx +++ b/packages/core/src/components/For.tsx @@ -1,9 +1,10 @@ -import { isRef, Ref } from "@vue/reactivity"; +import type { Ref } from "@vue/reactivity"; +import { isRef } from "@vue/reactivity"; import { memo } from "../reactivity.js"; import type { Children } from "../runtime/component.js"; import { baseListPropsToMapJoinArgs, mapJoin } from "../utils.js"; -import { BaseListProps } from "./List.jsx"; +import type { BaseListProps } from "./List.jsx"; export type ForCallbackArgs = number extends keyof T ? [value: T[number]] diff --git a/packages/core/src/components/MemberDeclaration.tsx b/packages/core/src/components/MemberDeclaration.tsx index cd67eaeda..b7828e3ca 100644 --- a/packages/core/src/components/MemberDeclaration.tsx +++ b/packages/core/src/components/MemberDeclaration.tsx @@ -5,7 +5,7 @@ import { useMemberContext } from "../context/member-scope.js"; import type { Namekey, Refkey } from "../refkey.js"; import type { Children } from "../runtime/component.js"; import { BasicSymbol } from "../symbols/basic-symbol.js"; -import { OutputSymbol } from "../symbols/output-symbol.js"; +import type { OutputSymbol } from "../symbols/output-symbol.js"; /** * Create a member declaration by providing a symbol name and optional symbol diff --git a/packages/core/src/components/MemberScope.tsx b/packages/core/src/components/MemberScope.tsx index d65660343..9074a0b44 100644 --- a/packages/core/src/components/MemberScope.tsx +++ b/packages/core/src/components/MemberScope.tsx @@ -2,7 +2,7 @@ import { MemberContext } from "../context/member-scope.js"; // eslint-disable-next-line @typescript-eslint/no-unused-vars import { ScopeContext } from "../context/scope.js"; import type { Children } from "../runtime/component.js"; -import { OutputScope } from "../symbols/output-scope.js"; +import type { OutputScope } from "../symbols/output-scope.js"; import type { OutputSymbol } from "../symbols/output-symbol.js"; import { Scope } from "./Scope.jsx"; diff --git a/packages/core/src/components/Output.tsx b/packages/core/src/components/Output.tsx index f9d926d37..eab5ffc97 100644 --- a/packages/core/src/components/Output.tsx +++ b/packages/core/src/components/Output.tsx @@ -1,14 +1,10 @@ -import { - createOutputBinder, - getSymbolCreator, - NameConflictResolver, - SymbolCreator, -} from "../binder.js"; +import type { NameConflictResolver, SymbolCreator } from "../binder.js"; +import { createOutputBinder, getSymbolCreator } from "../binder.js"; import { BinderContext } from "../context/binder.js"; import { FormatOptions } from "../context/format-options.js"; import { NamePolicyContext } from "../context/name-policy.js"; -import { NamePolicy } from "../name-policy.js"; -import { PrintTreeOptions } from "../output-types.js"; +import type { NamePolicy } from "../name-policy.js"; +import type { PrintTreeOptions } from "../output-types.js"; import type { Children } from "../runtime/component.js"; import { SourceDirectory } from "./SourceDirectory.js"; // eslint-disable-next-line @typescript-eslint/no-unused-vars diff --git a/packages/core/src/components/Scope.tsx b/packages/core/src/components/Scope.tsx index 7ab993a09..333f1354d 100644 --- a/packages/core/src/components/Scope.tsx +++ b/packages/core/src/components/Scope.tsx @@ -3,8 +3,8 @@ import { ScopeContext, useScope } from "../context/scope.js"; import { debug } from "../debug/index.js"; import type { Children } from "../runtime/component.js"; import { BasicScope } from "../symbols/basic-scope.js"; -import { OutputScope } from "../symbols/output-scope.js"; -import { OutputSymbol } from "../symbols/output-symbol.js"; +import type { OutputScope } from "../symbols/output-scope.js"; +import type { OutputSymbol } from "../symbols/output-symbol.js"; /** * Declare a scope by providing an already created scope. The scope is merely diff --git a/packages/core/src/components/SourceFile.tsx b/packages/core/src/components/SourceFile.tsx index 4c65204ad..7496139b5 100644 --- a/packages/core/src/components/SourceFile.tsx +++ b/packages/core/src/components/SourceFile.tsx @@ -4,9 +4,9 @@ import { useContext } from "../context.js"; import { useFormatOptions } from "../context/format-options.js"; import { SourceDirectoryContext } from "../context/source-directory.js"; import { SourceFileContext } from "../context/source-file.js"; -import { PrintTreeOptions } from "../output-types.js"; +import type { PrintTreeOptions } from "../output-types.js"; import { getContext } from "../reactivity.js"; -import { Refkey } from "../refkey.js"; +import type { Refkey } from "../refkey.js"; import type { Children, ComponentDefinition } from "../runtime/component.js"; import { Show } from "./Show.jsx"; diff --git a/packages/core/src/components/TemplateFile.tsx b/packages/core/src/components/TemplateFile.tsx index 434ecdc9c..fee44dd8f 100644 --- a/packages/core/src/components/TemplateFile.tsx +++ b/packages/core/src/components/TemplateFile.tsx @@ -2,7 +2,8 @@ import { computed } from "@vue/reactivity"; import { emitDiagnostic } from "../diagnostics.js"; import { createFileResource } from "../resource.js"; -import { Children, isComponentCreator } from "../runtime/component.js"; +import type { Children } from "../runtime/component.js"; +import { isComponentCreator } from "../runtime/component.js"; import { childrenArray } from "../utils.jsx"; import { SourceFile } from "./SourceFile.jsx"; diff --git a/packages/core/src/components/UpdateFile.tsx b/packages/core/src/components/UpdateFile.tsx index 837b3d4e2..942c2d077 100644 --- a/packages/core/src/components/UpdateFile.tsx +++ b/packages/core/src/components/UpdateFile.tsx @@ -4,7 +4,7 @@ import { join } from "pathe"; import { useContext } from "../context.js"; import { SourceDirectoryContext } from "../context/source-directory.js"; import { createFileResource } from "../resource.js"; -import { Children } from "../runtime/component.js"; +import type { Children } from "../runtime/component.js"; import { SourceFile } from "./SourceFile.jsx"; /** * Props for the UpdateFile component. diff --git a/packages/core/src/content-slot.tsx b/packages/core/src/content-slot.tsx index 7c0ca52c3..5ef9eab70 100644 --- a/packages/core/src/content-slot.tsx +++ b/packages/core/src/content-slot.tsx @@ -1,8 +1,9 @@ -import { computed, Ref, shallowRef } from "@vue/reactivity"; +import type { Ref } from "@vue/reactivity"; +import { computed, shallowRef } from "@vue/reactivity"; import { Show } from "./components/Show.jsx"; import { ensureIsEmpty, getContext } from "./reactivity.js"; -import { Children, Component } from "./runtime/component.js"; +import type { Children, Component } from "./runtime/component.js"; export interface ContentSlot { (props: { children: Children }): Children; diff --git a/packages/core/src/context/assignment.ts b/packages/core/src/context/assignment.ts index 2ecc026c6..1e77db527 100644 --- a/packages/core/src/context/assignment.ts +++ b/packages/core/src/context/assignment.ts @@ -1,8 +1,5 @@ -import { - ComponentContext, - createNamedContext, - useContext, -} from "../context.js"; +import type { ComponentContext } from "../context.js"; +import { createNamedContext, useContext } from "../context.js"; import type { OutputSymbol } from "../symbols/output-symbol.js"; export interface AssignmentContext { diff --git a/packages/core/src/context/declaration.ts b/packages/core/src/context/declaration.ts index f3495027b..4bf3e2ef9 100644 --- a/packages/core/src/context/declaration.ts +++ b/packages/core/src/context/declaration.ts @@ -1,4 +1,5 @@ -import { ComponentContext, createNamedContext } from "../context.js"; +import type { ComponentContext } from "../context.js"; +import { createNamedContext } from "../context.js"; import type { OutputSymbol } from "../symbols/output-symbol.js"; export const DeclarationContext: ComponentContext = diff --git a/packages/core/src/context/format-options.ts b/packages/core/src/context/format-options.ts index 7ea879b4c..5b8b93deb 100644 --- a/packages/core/src/context/format-options.ts +++ b/packages/core/src/context/format-options.ts @@ -1,5 +1,5 @@ import { createNamedContext, useContext } from "../context.js"; -import { PrintTreeOptions } from "../output-types.js"; +import type { PrintTreeOptions } from "../output-types.js"; export interface CommonFormatOptions extends PrintTreeOptions {} diff --git a/packages/core/src/context/member-declaration.ts b/packages/core/src/context/member-declaration.ts index bcba36742..e611072ff 100644 --- a/packages/core/src/context/member-declaration.ts +++ b/packages/core/src/context/member-declaration.ts @@ -1,8 +1,5 @@ -import { - ComponentContext, - createNamedContext, - useContext, -} from "../context.js"; +import type { ComponentContext } from "../context.js"; +import { createNamedContext, useContext } from "../context.js"; import type { OutputSymbol } from "../symbols/output-symbol.js"; /** diff --git a/packages/core/src/context/member-scope.ts b/packages/core/src/context/member-scope.ts index 24632be43..481f4ad00 100644 --- a/packages/core/src/context/member-scope.ts +++ b/packages/core/src/context/member-scope.ts @@ -1,9 +1,6 @@ -import { - ComponentContext, - createNamedContext, - useContext, -} from "../context.js"; -import { OutputSymbol } from "../symbols/output-symbol.js"; +import type { ComponentContext } from "../context.js"; +import { createNamedContext, useContext } from "../context.js"; +import type { OutputSymbol } from "../symbols/output-symbol.js"; /** * The member context provides the symbol upon which new member symbols diff --git a/packages/core/src/context/name-policy.ts b/packages/core/src/context/name-policy.ts index f8b090cc6..f6e95b714 100644 --- a/packages/core/src/context/name-policy.ts +++ b/packages/core/src/context/name-policy.ts @@ -1,8 +1,5 @@ -import { - ComponentContext, - createNamedContext, - useContext, -} from "../context.js"; +import type { ComponentContext } from "../context.js"; +import { createNamedContext, useContext } from "../context.js"; import type { NamePolicy } from "../name-policy.js"; export const NamePolicyContext: ComponentContext> = diff --git a/packages/core/src/context/scope.ts b/packages/core/src/context/scope.ts index d5ecdf8a1..e235ef8bd 100644 --- a/packages/core/src/context/scope.ts +++ b/packages/core/src/context/scope.ts @@ -1,8 +1,5 @@ -import { - ComponentContext, - createNamedContext, - useContext, -} from "../context.js"; +import type { ComponentContext } from "../context.js"; +import { createNamedContext, useContext } from "../context.js"; import type { OutputScope } from "../symbols/output-scope.js"; export const ScopeContext: ComponentContext = diff --git a/packages/core/src/context/source-directory.ts b/packages/core/src/context/source-directory.ts index b134781d7..0a930c00a 100644 --- a/packages/core/src/context/source-directory.ts +++ b/packages/core/src/context/source-directory.ts @@ -1,4 +1,5 @@ -import { ComponentContext, createNamedContext } from "../context.js"; +import type { ComponentContext } from "../context.js"; +import { createNamedContext } from "../context.js"; import type { CopyFileContext, SourceFileContext } from "./source-file.js"; export interface SourceDirectoryContext { diff --git a/packages/core/src/context/source-file.ts b/packages/core/src/context/source-file.ts index db9cd234f..69a8e2d64 100644 --- a/packages/core/src/context/source-file.ts +++ b/packages/core/src/context/source-file.ts @@ -1,6 +1,7 @@ -import { ComponentContext, createNamedContext } from "../context.js"; +import type { ComponentContext } from "../context.js"; +import { createNamedContext } from "../context.js"; import type { Refkey } from "../refkey.js"; -import { ComponentDefinition } from "../runtime/component.js"; +import type { ComponentDefinition } from "../runtime/component.js"; export interface CopyFileContext { path: string; diff --git a/packages/core/src/debug/render.ts b/packages/core/src/debug/render.ts index 9e7aea0d6..d51d64404 100644 --- a/packages/core/src/debug/render.ts +++ b/packages/core/src/debug/render.ts @@ -58,15 +58,14 @@ import { } from "../devtools/devtools-server.js"; import { getContext, untrack } from "../reactivity.js"; import { getContextForNode } from "../render/node-context.js"; +import type { ElementNode, TextNode } from "../render/node.js"; import { AlloyNode, CommentNode, ELEMENT_NODE, - ElementNode, FRAGMENT_NODE, setMutationListener, TEXT_NODE, - TextNode, } from "../render/node.js"; import { flushJobsAsync } from "../scheduler.js"; import type { ComponentCreator } from "./../runtime/component.js"; diff --git a/packages/core/src/host/alloy-host.browser.ts b/packages/core/src/host/alloy-host.browser.ts index ae7b45cfb..0c55dce55 100644 --- a/packages/core/src/host/alloy-host.browser.ts +++ b/packages/core/src/host/alloy-host.browser.ts @@ -1,4 +1,4 @@ -import { AlloyFileInterface, AlloyHostInterface } from "./interface.js"; +import type { AlloyFileInterface, AlloyHostInterface } from "./interface.js"; export const AlloyHost: AlloyHostInterface = { read(source: string): AlloyFileInterface { diff --git a/packages/core/src/host/alloy-host.ts b/packages/core/src/host/alloy-host.ts index dc1783c57..5c3b2fdee 100644 --- a/packages/core/src/host/alloy-host.ts +++ b/packages/core/src/host/alloy-host.ts @@ -1,7 +1,7 @@ import { createReadStream, createWriteStream } from "fs"; import { access, mkdir, readFile, writeFile } from "fs/promises"; -import { AlloyFileInterface, AlloyHostInterface } from "./interface.js"; +import type { AlloyFileInterface, AlloyHostInterface } from "./interface.js"; export const AlloyHost: AlloyHostInterface = { read(source: string): AlloyFileInterface { diff --git a/packages/core/src/index.ts b/packages/core/src/index.ts index afea3dd72..e921e4a2d 100644 --- a/packages/core/src/index.ts +++ b/packages/core/src/index.ts @@ -25,7 +25,7 @@ export * from "./context/index.js"; export * from "./diagnostics.js"; export * from "./library-symbol-reference.js"; export * from "./name-policy.js"; -export * from "./output-types.js"; +export type * from "./output-types.js"; export * from "./props-combinators.js"; export * from "./reactive-union-set.js"; export { @@ -91,7 +91,7 @@ export { } from "./render/node.js"; export * from "./resource.js"; export * from "./runtime/component.js"; -export * from "./runtime/intrinsic.js"; +export type * from "./runtime/intrinsic.js"; export * from "./stc.js"; export * from "./sti.js"; export * from "./symbols/index.js"; diff --git a/packages/core/src/library-symbol-reference.ts b/packages/core/src/library-symbol-reference.ts index c3cf5b87c..b10b5d85b 100644 --- a/packages/core/src/library-symbol-reference.ts +++ b/packages/core/src/library-symbol-reference.ts @@ -1,5 +1,5 @@ -import { RefkeyableObject } from "./refkey.js"; -import { OutputSymbol } from "./symbols/output-symbol.js"; +import type { RefkeyableObject } from "./refkey.js"; +import type { OutputSymbol } from "./symbols/output-symbol.js"; /** * Well-known symbol for the lazy-symbol-creation protocol used by external diff --git a/packages/core/src/pretty-string/pretty-string.test.ts b/packages/core/src/pretty-string/pretty-string.test.ts index 90ba7c3a3..b5fbd1851 100644 --- a/packages/core/src/pretty-string/pretty-string.test.ts +++ b/packages/core/src/pretty-string/pretty-string.test.ts @@ -1,6 +1,7 @@ import { expect, it } from "vitest"; -import { pret, PrettyString } from "./pretty-string.js"; +import type { PrettyString } from "./pretty-string.js"; +import { pret } from "./pretty-string.js"; function expectRender( pretty: PrettyString, diff --git a/packages/core/src/reactivity.ts b/packages/core/src/reactivity.ts index c702be7b2..e217ba320 100644 --- a/packages/core/src/reactivity.ts +++ b/packages/core/src/reactivity.ts @@ -1,10 +1,12 @@ +import type { + ReactiveEffectRunner, + Ref, + ShallowReactive, +} from "@vue/reactivity"; import { isRef, pauseTracking, - ReactiveEffectRunner, - Ref, resetTracking, - ShallowReactive, stop, computed as vueComputed, effect as vueEffect, @@ -21,7 +23,7 @@ import { isDebugEnabled, type DebugSourceLocation, } from "./debug/index.js"; -import { Children, ComponentCreator } from "./runtime/component.js"; +import type { Children, ComponentCreator } from "./runtime/component.js"; import { scheduler, setLastTriggerRef } from "./scheduler.js"; import type { OutputSymbol } from "./symbols/output-symbol.js"; diff --git a/packages/core/src/render-output.ts b/packages/core/src/render-output.ts index 11b358c72..7b820e149 100644 --- a/packages/core/src/render-output.ts +++ b/packages/core/src/render-output.ts @@ -29,7 +29,8 @@ import type { import { root as createRoot, type Context } from "./reactivity.js"; import { notifyRenderError, resetRenderErrorState } from "./render-error.js"; import { getContextForNode } from "./render/node-context.js"; -import { AlloyNode, createElement, ElementNode } from "./render/node.js"; +import type { AlloyNode } from "./render/node.js"; +import { createElement, ElementNode } from "./render/node.js"; import { printNodeToString } from "./render/printer.js"; import type { Children } from "./runtime/component.js"; import { insert } from "./runtime/insert.js"; diff --git a/packages/core/src/render-stack.ts b/packages/core/src/render-stack.ts index 11f8846f0..a51faa728 100644 --- a/packages/core/src/render-stack.ts +++ b/packages/core/src/render-stack.ts @@ -4,8 +4,9 @@ import { contextsByKey } from "./context.js"; import { SourceDirectoryContext } from "./context/source-directory.js"; import { SourceFileContext } from "./context/source-file.js"; import { cwd } from "./host/node-host.js"; -import { Context, getContext } from "./reactivity.js"; -import { Component, Props, SourceLocation } from "./runtime/component.js"; +import type { Context } from "./reactivity.js"; +import { getContext } from "./reactivity.js"; +import type { Component, Props, SourceLocation } from "./runtime/component.js"; // Store render stack for error diagnostics const renderStack: Array<{ diff --git a/packages/core/src/render/printer.ts b/packages/core/src/render/printer.ts index f0be61357..1738d0540 100644 --- a/packages/core/src/render/printer.ts +++ b/packages/core/src/render/printer.ts @@ -27,25 +27,17 @@ * `getStringWidth` (vendored in `get-string-width.ts`). */ -import { - AlloyNode, - COMMENT_NODE, - ElementNode, - FRAGMENT_NODE, - TEXT_NODE, - TextNode, -} from "./node.js"; +import type { AlloyNode, ElementNode, TextNode } from "./node.js"; +import { COMMENT_NODE, FRAGMENT_NODE, TEXT_NODE } from "./node.js"; +import type { Indent, Mode, PrintNodeOptions } from "./printer-support.js"; import { CURSOR_PLACEHOLDER, getStringWidth, - Indent, joinOut, makeAlign, makeIndent, - Mode, MODE_BREAK, MODE_FLAT, - PrintNodeOptions, rootIndent, textHasNewline, textWidth, diff --git a/packages/core/src/resource.ts b/packages/core/src/resource.ts index 179c60352..ab649e323 100644 --- a/packages/core/src/resource.ts +++ b/packages/core/src/resource.ts @@ -1,4 +1,5 @@ -import { isRef, reactive, Ref } from "@vue/reactivity"; +import type { Ref } from "@vue/reactivity"; +import { isRef, reactive } from "@vue/reactivity"; import { AlloyHost } from "./host/alloy-host.js"; import { effect } from "./reactivity.js"; diff --git a/packages/core/src/runtime/component.ts b/packages/core/src/runtime/component.ts index d0038e738..c17d66b2f 100644 --- a/packages/core/src/runtime/component.ts +++ b/packages/core/src/runtime/component.ts @@ -1,7 +1,7 @@ -import { Ref } from "@vue/reactivity"; +import type { Ref } from "@vue/reactivity"; -import { CustomContext } from "../reactivity.js"; -import { Refkey, RefkeyableObject } from "../refkey.js"; +import type { CustomContext } from "../reactivity.js"; +import type { Refkey, RefkeyableObject } from "../refkey.js"; import type { AlloyNode } from "../render/node.js"; export const RENDERABLE = Symbol.for("Alloy.CustomElement"); diff --git a/packages/core/src/scheduler.ts b/packages/core/src/scheduler.ts index 114a64dc1..e4c2228f8 100644 --- a/packages/core/src/scheduler.ts +++ b/packages/core/src/scheduler.ts @@ -1,4 +1,4 @@ -import { ReactiveEffect } from "@vue/reactivity"; +import type { ReactiveEffect } from "@vue/reactivity"; import { debug } from "./debug/index.js"; import { diff --git a/packages/core/src/stc.ts b/packages/core/src/stc.ts index 035d2f133..ef83134b3 100644 --- a/packages/core/src/stc.ts +++ b/packages/core/src/stc.ts @@ -1,6 +1,6 @@ import { code, text } from "./code.js"; import { _registerStcImpl } from "./context.js"; -import { +import type { Children, ComponentCreator, ComponentDefinition, diff --git a/packages/core/src/sti.ts b/packages/core/src/sti.ts index c20f38883..4af6970c9 100644 --- a/packages/core/src/sti.ts +++ b/packages/core/src/sti.ts @@ -1,8 +1,9 @@ import { code, text } from "./code.js"; import type { ElementNode } from "./render/node.js"; -import { Children, _INTRINSIC_CREATOR } from "./runtime/component.js"; +import type { Children } from "./runtime/component.js"; +import { _INTRINSIC_CREATOR } from "./runtime/component.js"; import { createIntrinsic } from "./runtime/create-intrinsic.js"; -import { IntrinsicElements } from "./runtime/intrinsic.js"; +import type { IntrinsicElements } from "./runtime/intrinsic.js"; export type StiSignature = ( ...args: unknown extends T diff --git a/packages/core/src/symbols/decl.ts b/packages/core/src/symbols/decl.ts index d078e5ff0..e9e304f95 100644 --- a/packages/core/src/symbols/decl.ts +++ b/packages/core/src/symbols/decl.ts @@ -2,7 +2,7 @@ import { toRef } from "@vue/reactivity"; import { createSymbol } from "../binder.js"; import { useScope } from "../context/scope.js"; -import { Namekey } from "../refkey.js"; +import type { Namekey } from "../refkey.js"; import { createComponent } from "../runtime/component.js"; import { BasicScope } from "./basic-scope.js"; import { BasicSymbol } from "./basic-symbol.js"; diff --git a/packages/core/src/symbols/output-scope.ts b/packages/core/src/symbols/output-scope.ts index 9b08e63f2..76f1eef5f 100644 --- a/packages/core/src/symbols/output-scope.ts +++ b/packages/core/src/symbols/output-scope.ts @@ -11,8 +11,9 @@ import type { Binder } from "../binder.js"; import { useBinder } from "../context/binder.js"; import { inspect } from "../inspect.js"; import { effect, shallowReactive, untrack } from "../reactivity.js"; -import { OutputDeclarationSpace, OutputSpace } from "./output-space.js"; -import { OutputSymbol } from "./output-symbol.js"; +import type { OutputSpace } from "./output-space.js"; +import { OutputDeclarationSpace } from "./output-space.js"; +import type { OutputSymbol } from "./output-symbol.js"; let scopeCount = 0; diff --git a/packages/core/src/symbols/output-space.ts b/packages/core/src/symbols/output-space.ts index 4f678a1d9..91328552b 100644 --- a/packages/core/src/symbols/output-space.ts +++ b/packages/core/src/symbols/output-space.ts @@ -1,8 +1,8 @@ -import { Binder } from "../binder.js"; +import type { Binder } from "../binder.js"; import { inspect } from "../inspect.js"; import { untrack } from "../reactivity.js"; -import { OutputScope } from "./output-scope.js"; -import { OutputSymbol } from "./output-symbol.js"; +import type { OutputScope } from "./output-scope.js"; +import type { OutputSymbol } from "./output-symbol.js"; import { SymbolTable } from "./symbol-table.js"; /** diff --git a/packages/core/src/symbols/output-symbol.ts b/packages/core/src/symbols/output-symbol.ts index 5524d5a91..08af05cf0 100644 --- a/packages/core/src/symbols/output-symbol.ts +++ b/packages/core/src/symbols/output-symbol.ts @@ -1,8 +1,8 @@ +import type { Ref } from "@vue/reactivity"; import { isRef, reactive, ReactiveFlags, - Ref, track, TrackOpTypes, trigger, @@ -14,23 +14,20 @@ import type { Binder } from "../binder.js"; import { useBinder } from "../context/binder.js"; import { debug, TracePhase } from "../debug/index.js"; import { inspect } from "../inspect.js"; -import { NamePolicyGetter } from "../name-policy.js"; +import type { NamePolicyGetter } from "../name-policy.js"; import { shallowReactive, untrack } from "../reactivity.js"; +import type { Namekey } from "../refkey.js"; import { isMemberRefkey, isNamekey, isSymbolRefkey, - Namekey, toRefkey, type Refkey, } from "../refkey.js"; import { formatSymbolName } from "../tracer.js"; -import { - OutputDeclarationSpace, - OutputMemberSpace, - OutputSpace, -} from "./output-space.js"; -import { SymbolTable } from "./symbol-table.js"; +import type { OutputDeclarationSpace, OutputSpace } from "./output-space.js"; +import { OutputMemberSpace } from "./output-space.js"; +import type { SymbolTable } from "./symbol-table.js"; export interface OutputSymbolOptions { /** diff --git a/packages/core/src/symbols/symbol-flow.ts b/packages/core/src/symbols/symbol-flow.ts index 8127fd4a0..166c22996 100644 --- a/packages/core/src/symbols/symbol-flow.ts +++ b/packages/core/src/symbols/symbol-flow.ts @@ -1,17 +1,18 @@ -import { isRef, Ref } from "@vue/reactivity"; +import type { Ref } from "@vue/reactivity"; +import { isRef } from "@vue/reactivity"; import { MemberContext } from "../context/member-scope.js"; import { ScopeContext } from "../context/scope.js"; import { debug, TracePhase } from "../debug/index.js"; +import type { Context } from "../reactivity.js"; import { - Context, effect, getContext, onCleanup, shallowReactive, } from "../reactivity.js"; import { formatSymbolName } from "../tracer.js"; -import { OutputSymbol } from "./output-symbol.js"; +import type { OutputSymbol } from "./output-symbol.js"; export interface TakeSymbolCallback { (symbol: OutputSymbol): void; diff --git a/packages/core/src/symbols/symbol-slot.tsx b/packages/core/src/symbols/symbol-slot.tsx index a6ad832a1..d988b323d 100644 --- a/packages/core/src/symbols/symbol-slot.tsx +++ b/packages/core/src/symbols/symbol-slot.tsx @@ -1,9 +1,10 @@ -import { Ref, ShallowReactive, shallowRef } from "@vue/reactivity"; +import type { Ref, ShallowReactive } from "@vue/reactivity"; +import { shallowRef } from "@vue/reactivity"; import { emitDiagnostic } from "../diagnostics.js"; import { effect, onCleanup } from "../reactivity.js"; import type { Children, Component } from "../runtime/component.js"; -import { OutputSymbol } from "./output-symbol.js"; +import type { OutputSymbol } from "./output-symbol.js"; import { takeSymbols } from "./symbol-flow.js"; export interface SymbolSlot extends Component<{}> { diff --git a/packages/core/src/symbols/symbol-table.ts b/packages/core/src/symbols/symbol-table.ts index 423223678..269dfc71f 100644 --- a/packages/core/src/symbols/symbol-table.ts +++ b/packages/core/src/symbols/symbol-table.ts @@ -1,10 +1,10 @@ import type { Binder, NameConflictResolver } from "../binder.js"; import { debug, TracePhase } from "../debug/index.js"; import { ReactiveUnionSet } from "../reactive-union-set.js"; -import { Refkey } from "../refkey.js"; +import type { Refkey } from "../refkey.js"; import { queueJob } from "../scheduler.js"; import { formatSymbolName, formatSymbolTableName } from "../tracer.js"; -import { OutputSpace } from "./output-space.js"; +import type { OutputSpace } from "./output-space.js"; import type { OutputSymbol } from "./output-symbol.js"; export abstract class SymbolTable extends ReactiveUnionSet { diff --git a/packages/core/src/tap.ts b/packages/core/src/tap.ts index f940e5825..89b5bd534 100644 --- a/packages/core/src/tap.ts +++ b/packages/core/src/tap.ts @@ -1,4 +1,5 @@ -import { ShallowRef, shallowRef } from "@vue/reactivity"; +import type { ShallowRef } from "@vue/reactivity"; +import { shallowRef } from "@vue/reactivity"; import { useContext } from "./context.js"; import { DeclarationContext } from "./context/declaration.js"; @@ -6,8 +7,8 @@ import { MemberDeclarationContext } from "./context/member-declaration.js"; import { useScope } from "./context/scope.js"; import { SourceFileContext } from "./context/source-file.js"; import type { ComponentDefinition } from "./runtime/component.js"; -import { OutputScope } from "./symbols/output-scope.js"; -import { OutputSymbol } from "./symbols/output-symbol.js"; +import type { OutputScope } from "./symbols/output-scope.js"; +import type { OutputSymbol } from "./symbols/output-symbol.js"; /** * The return value of {@link createTap}, this holds a reference to the tapped diff --git a/packages/core/src/test-render.ts b/packages/core/src/test-render.ts index 474236ddd..a54838d17 100644 --- a/packages/core/src/test-render.ts +++ b/packages/core/src/test-render.ts @@ -19,7 +19,8 @@ import type { PrintTreeOptions } from "./output-types.js"; import { root, runInContext } from "./reactivity.js"; import { printNode } from "./render-output.js"; import { getContextForNode } from "./render/node-context.js"; -import { AlloyNode, createElement, ElementNode } from "./render/node.js"; +import type { AlloyNode } from "./render/node.js"; +import { createElement, ElementNode } from "./render/node.js"; import type { Children } from "./runtime/component.js"; import { insert } from "./runtime/insert.js"; import { flushJobs } from "./scheduler.js"; diff --git a/packages/core/src/tracer.ts b/packages/core/src/tracer.ts index 4d3696dcb..5f343e950 100644 --- a/packages/core/src/tracer.ts +++ b/packages/core/src/tracer.ts @@ -15,7 +15,7 @@ import type { OutputMemberSpace, } from "./symbols/output-space.js"; import { type OutputSymbol } from "./symbols/output-symbol.js"; -import { SymbolTable } from "./symbols/symbol-table.js"; +import type { SymbolTable } from "./symbols/symbol-table.js"; const dids = parseBreakOnIds(); diff --git a/packages/core/src/utils.tsx b/packages/core/src/utils.tsx index 2208ed722..605bc22bf 100644 --- a/packages/core/src/utils.tsx +++ b/packages/core/src/utils.tsx @@ -1,11 +1,11 @@ -import { Ref, toRaw } from "@vue/reactivity"; +import type { Ref } from "@vue/reactivity"; +import { toRaw } from "@vue/reactivity"; -import { BaseListProps } from "./components/List.jsx"; -import { OutputDirectory, OutputFile } from "./output-types.js"; +import type { BaseListProps } from "./components/List.jsx"; +import type { OutputDirectory, OutputFile } from "./output-types.js"; +import type { CustomContext, Disposable } from "./reactivity.js"; import { createCustomContext, - CustomContext, - Disposable, getContext, memo, onCleanup, @@ -15,10 +15,9 @@ import { untrack, } from "./reactivity.js"; import { AlloyNode, FRAGMENT_NODE } from "./render/node.js"; +import type { Children, ComponentCreator } from "./runtime/component.js"; import { _isIntrinsicCreator, - Children, - ComponentCreator, isComponentCreator, } from "./runtime/component.js"; diff --git a/packages/core/src/write-output.ts b/packages/core/src/write-output.ts index 8a1e0594b..1cff31f59 100644 --- a/packages/core/src/write-output.ts +++ b/packages/core/src/write-output.ts @@ -2,7 +2,7 @@ import { dirname, relative, resolve } from "pathe"; import { AlloyHost } from "./host/alloy-host.js"; import { cwd } from "./host/node-host.js"; -import { OutputDirectory } from "./output-types.js"; +import type { OutputDirectory } from "./output-types.js"; import { traverseOutput } from "./utils.js"; /** * Write the output from {@link render} to the file system. diff --git a/packages/core/test/children.test.tsx b/packages/core/test/children.test.tsx index bd0816f54..b8d238f90 100644 --- a/packages/core/test/children.test.tsx +++ b/packages/core/test/children.test.tsx @@ -1,6 +1,6 @@ +import type { Children } from "@alloy-js/core"; import { children, - Children, childrenArray, code, isComponentCreator, diff --git a/packages/core/test/components/reference-or-content.test.tsx b/packages/core/test/components/reference-or-content.test.tsx index 18d92ad1d..146752b4c 100644 --- a/packages/core/test/components/reference-or-content.test.tsx +++ b/packages/core/test/components/reference-or-content.test.tsx @@ -1,13 +1,12 @@ import { describe, expect, it, vi } from "vitest"; +import type { Children, Refkey } from "../../src/index.js"; import { - Children, createTap, Declaration, List, Output, ReferenceOrContent, - Refkey, refkey, resolve, Scope, diff --git a/packages/core/test/components/source-file.test.tsx b/packages/core/test/components/source-file.test.tsx index c3daf4720..fbc377cab 100644 --- a/packages/core/test/components/source-file.test.tsx +++ b/packages/core/test/components/source-file.test.tsx @@ -1,8 +1,10 @@ -import { +import type { Children, CommonFormatOptions, - computed, ContentOutputFile, +} from "@alloy-js/core"; +import { + computed, FormatOptions, Indent, Output, diff --git a/packages/core/test/lazy-isempty.test.tsx b/packages/core/test/lazy-isempty.test.tsx index 92fe8d9a7..bc6864000 100644 --- a/packages/core/test/lazy-isempty.test.tsx +++ b/packages/core/test/lazy-isempty.test.tsx @@ -3,7 +3,8 @@ import { describe, expect, it } from "vitest"; import { Show } from "../src/components/Show.jsx"; import { createContentSlot } from "../src/content-slot.jsx"; -import { Context, ensureIsEmpty, getContext } from "../src/reactivity.js"; +import type { Context } from "../src/reactivity.js"; +import { ensureIsEmpty, getContext } from "../src/reactivity.js"; describe("lazy isEmpty", () => { it("context starts without isEmpty ref allocated", () => { diff --git a/packages/core/test/refkey.test.ts b/packages/core/test/refkey.test.ts index 1a4daa982..9597c7b9b 100644 --- a/packages/core/test/refkey.test.ts +++ b/packages/core/test/refkey.test.ts @@ -1,6 +1,7 @@ import { expect, it } from "vitest"; -import { refkey, REFKEYABLE, Refkeyable } from "../src/refkey.js"; +import type { Refkeyable } from "../src/refkey.js"; +import { refkey, REFKEYABLE } from "../src/refkey.js"; it("is stable when called with same values", () => { const obj = {}; diff --git a/packages/core/test/rendering/basic.test.tsx b/packages/core/test/rendering/basic.test.tsx index 6b0150c44..10432c0f5 100644 --- a/packages/core/test/rendering/basic.test.tsx +++ b/packages/core/test/rendering/basic.test.tsx @@ -1,6 +1,7 @@ import { describe, expect, it } from "vitest"; -import { Children, RENDERABLE } from "../../src/runtime/component.js"; +import type { Children } from "../../src/runtime/component.js"; +import { RENDERABLE } from "../../src/runtime/component.js"; describe("string nodes", () => { it("renders string nodes with substitutions", () => { const str = "hi"; diff --git a/packages/core/test/rendering/refkeys.test.tsx b/packages/core/test/rendering/refkeys.test.tsx index 8ca1efdba..e47fdc5d5 100644 --- a/packages/core/test/rendering/refkeys.test.tsx +++ b/packages/core/test/rendering/refkeys.test.tsx @@ -1,4 +1,5 @@ -import { refkey, Refkey } from "@alloy-js/core"; +import type { Refkey } from "@alloy-js/core"; +import { refkey } from "@alloy-js/core"; import { SourceFile } from "@alloy-js/core/stc"; import { expect, it } from "vitest"; diff --git a/packages/core/test/symbols/deconflicted-name.test.ts b/packages/core/test/symbols/deconflicted-name.test.ts index 2d7c1725f..025e82c49 100644 --- a/packages/core/test/symbols/deconflicted-name.test.ts +++ b/packages/core/test/symbols/deconflicted-name.test.ts @@ -1,6 +1,7 @@ import { describe, expect, it } from "vitest"; -import { Binder, createOutputBinder } from "../../src/binder.js"; +import type { Binder } from "../../src/binder.js"; +import { createOutputBinder } from "../../src/binder.js"; import { flushJobs } from "../../src/scheduler.js"; import { BasicScope } from "../../src/symbols/basic-scope.js"; import { BasicSymbol } from "../../src/symbols/basic-symbol.js"; diff --git a/packages/core/test/symbols/utils.ts b/packages/core/test/symbols/utils.ts index b8013bf05..bafdfddcc 100644 --- a/packages/core/test/symbols/utils.ts +++ b/packages/core/test/symbols/utils.ts @@ -1,12 +1,14 @@ import { beforeEach } from "vitest"; -import { Binder, createOutputBinder } from "../../src/binder.js"; -import { OutputSpace } from "../../src/index.js"; -import { Namekey, refkey, Refkey } from "../../src/refkey.js"; +import type { Binder } from "../../src/binder.js"; +import { createOutputBinder } from "../../src/binder.js"; +import type { OutputSpace } from "../../src/index.js"; +import type { Namekey, Refkey } from "../../src/refkey.js"; +import { refkey } from "../../src/refkey.js"; import { BasicScope } from "../../src/symbols/basic-scope.js"; import { BasicSymbol } from "../../src/symbols/basic-symbol.js"; -import { OutputScopeOptions } from "../../src/symbols/output-scope.js"; -import { OutputSymbolOptions } from "../../src/symbols/output-symbol.js"; +import type { OutputScopeOptions } from "../../src/symbols/output-scope.js"; +import type { OutputSymbolOptions } from "../../src/symbols/output-symbol.js"; type ScopeRecords = Record; type SymbolRecords = Record; diff --git a/packages/core/test/tree-test-utils.ts b/packages/core/test/tree-test-utils.ts index c7978ea7b..ebac85ef0 100644 --- a/packages/core/test/tree-test-utils.ts +++ b/packages/core/test/tree-test-utils.ts @@ -1,4 +1,5 @@ -import { TEXT_NODE, TextNode, type AlloyNode } from "../src/render/node.js"; +import type { TextNode } from "../src/render/node.js"; +import { TEXT_NODE, type AlloyNode } from "../src/render/node.js"; export function textContent(root: AlloyNode): string { let result = ""; diff --git a/packages/core/test/utils.test.tsx b/packages/core/test/utils.test.tsx index 180076df4..6916d6dc5 100644 --- a/packages/core/test/utils.test.tsx +++ b/packages/core/test/utils.test.tsx @@ -1,7 +1,7 @@ import { computed, ref, triggerRef } from "@vue/reactivity"; import { describe, expect, it } from "vitest"; -import { Children } from "../src/index.js"; +import type { Children } from "../src/index.js"; import { flushJobs } from "../src/scheduler.js"; import { children, join, mapJoin } from "../src/utils.js"; diff --git a/packages/core/testing/create-test-wrapper.tsx b/packages/core/testing/create-test-wrapper.tsx index b4c117eb4..16fc3e50a 100644 --- a/packages/core/testing/create-test-wrapper.tsx +++ b/packages/core/testing/create-test-wrapper.tsx @@ -1,13 +1,15 @@ -import { +import type { Children, - Declaration, - For, NameConflictResolver, Namekey, - namekey, NamePolicy, - Output, OutputSymbol, +} from "../src/index.js"; +import { + Declaration, + For, + namekey, + Output, shallowReactive, } from "../src/index.js"; diff --git a/packages/core/testing/devtools-utils.ts b/packages/core/testing/devtools-utils.ts index 01121c85c..cb04f2aee 100644 --- a/packages/core/testing/devtools-utils.ts +++ b/packages/core/testing/devtools-utils.ts @@ -1,4 +1,4 @@ -import WebSocket from "ws"; +import type WebSocket from "ws"; export interface DevtoolsMessage { type: string; diff --git a/packages/core/testing/extend-expect.ts b/packages/core/testing/extend-expect.ts index b1f6f439e..cb23803ef 100644 --- a/packages/core/testing/extend-expect.ts +++ b/packages/core/testing/extend-expect.ts @@ -1,4 +1,4 @@ -import { Children, Diagnostic } from "@alloy-js/core"; +import type { Children, Diagnostic } from "@alloy-js/core"; import "vitest"; import { expect } from "vitest"; diff --git a/packages/core/testing/index.ts b/packages/core/testing/index.ts index 657b76d93..38a2a31fd 100644 --- a/packages/core/testing/index.ts +++ b/packages/core/testing/index.ts @@ -1,3 +1,6 @@ export * from "./create-test-wrapper.jsx"; -export * from "./extend-expect.js"; +// Side-effect import registers the vitest matchers (expect.extend); the +// re-export below only surfaces the type-only `ToRenderToOptions`. +import "./extend-expect.js"; +export type * from "./extend-expect.js"; export * from "./render.js"; diff --git a/packages/csharp/scripts/components/library-interface.tsx b/packages/csharp/scripts/components/library-interface.tsx index 58fd40b33..cea13952b 100644 --- a/packages/csharp/scripts/components/library-interface.tsx +++ b/packages/csharp/scripts/components/library-interface.tsx @@ -5,7 +5,7 @@ import { TypeDeclaration, } from "@alloy-js/typescript"; -import { Descriptor } from "#createLibrary"; +import type { Descriptor } from "#createLibrary"; export function LibraryInterfaceDeclaration(props: { name: string; diff --git a/packages/csharp/scripts/components/namespace-directory.tsx b/packages/csharp/scripts/components/namespace-directory.tsx index 4a57d9098..4a0ab14e6 100644 --- a/packages/csharp/scripts/components/namespace-directory.tsx +++ b/packages/csharp/scripts/components/namespace-directory.tsx @@ -12,7 +12,7 @@ import { VarDeclaration, } from "@alloy-js/typescript"; -import { Descriptor, NamespaceDescriptor } from "#createLibrary"; +import type { Descriptor, NamespaceDescriptor } from "#createLibrary"; import { LibraryInterfaceDeclaration } from "./library-interface.jsx"; diff --git a/packages/csharp/scripts/process-docfx.tsx b/packages/csharp/scripts/process-docfx.tsx index 198a964c6..f64dbeb2b 100644 --- a/packages/csharp/scripts/process-docfx.tsx +++ b/packages/csharp/scripts/process-docfx.tsx @@ -5,7 +5,7 @@ import { refkey } from "@alloy-js/core"; import { ArrowFunction } from "@alloy-js/typescript"; import { load as parseYaml } from "js-yaml"; -import { Descriptor, NamespaceDescriptor } from "#createLibrary"; +import type { Descriptor, NamespaceDescriptor } from "#createLibrary"; interface DocfxItem { uid: string; diff --git a/packages/csharp/src/access.tsx b/packages/csharp/src/access.tsx index ebebc6f6f..62e3d2f18 100644 --- a/packages/csharp/src/access.tsx +++ b/packages/csharp/src/access.tsx @@ -1,10 +1,9 @@ -import { Children, isRefkeyable, Refkeyable, RENDERABLE } from "@alloy-js/core"; +import type { Children, Refkeyable } from "@alloy-js/core"; +import { isRefkeyable, RENDERABLE } from "@alloy-js/core"; -import { - AccessExpression, - AccessExpressionPartProps, -} from "./components/access-expression/access-expression.jsx"; -import { CSharpSymbol } from "./symbols/csharp.js"; +import type { AccessExpressionPartProps } from "./components/access-expression/access-expression.jsx"; +import { AccessExpression } from "./components/access-expression/access-expression.jsx"; +import type { CSharpSymbol } from "./symbols/csharp.js"; export class AccessExpressionBuilder { private _parts: AccessExpressionPartProps[] = []; diff --git a/packages/csharp/src/builtins/Microsoft/CSharp/RuntimeBinder/index.ts b/packages/csharp/src/builtins/Microsoft/CSharp/RuntimeBinder/index.ts index 80b690b6d..aded23502 100644 --- a/packages/csharp/src/builtins/Microsoft/CSharp/RuntimeBinder/index.ts +++ b/packages/csharp/src/builtins/Microsoft/CSharp/RuntimeBinder/index.ts @@ -1,5 +1,5 @@ import { createLibrary } from "#createLibrary"; -import { LibrarySymbolReference } from "@alloy-js/core"; +import type { LibrarySymbolReference } from "@alloy-js/core"; type RuntimeBinderLibrary = LibrarySymbolReference & { RuntimeBinderException: LibrarySymbolReference & { diff --git a/packages/csharp/src/builtins/Microsoft/CSharp/index.ts b/packages/csharp/src/builtins/Microsoft/CSharp/index.ts index f79cdf871..4775ff5a5 100644 --- a/packages/csharp/src/builtins/Microsoft/CSharp/index.ts +++ b/packages/csharp/src/builtins/Microsoft/CSharp/index.ts @@ -1,5 +1,5 @@ import { createLibrary } from "#createLibrary"; -import { LibrarySymbolReference } from "@alloy-js/core";export { default as RuntimeBinder } from "./RuntimeBinder/index.js"; +import type { LibrarySymbolReference } from "@alloy-js/core";export { default as RuntimeBinder } from "./RuntimeBinder/index.js"; type CSharpLibrary = LibrarySymbolReference & { diff --git a/packages/csharp/src/builtins/Microsoft/VisualBasic/FileIO/index.ts b/packages/csharp/src/builtins/Microsoft/VisualBasic/FileIO/index.ts index 20093f9ac..f3cf8bc7c 100644 --- a/packages/csharp/src/builtins/Microsoft/VisualBasic/FileIO/index.ts +++ b/packages/csharp/src/builtins/Microsoft/VisualBasic/FileIO/index.ts @@ -2,7 +2,7 @@ import ObjectModel from "../../../System/Collections/ObjectModel/index.js"; import System from "../../../System/index.js"; import { createLibrary } from "#createLibrary"; -import { LibrarySymbolReference } from "@alloy-js/core"; +import type { LibrarySymbolReference } from "@alloy-js/core"; type FileIOLibrary = LibrarySymbolReference & { DeleteDirectoryOption: LibrarySymbolReference & { diff --git a/packages/csharp/src/builtins/Microsoft/VisualBasic/index.ts b/packages/csharp/src/builtins/Microsoft/VisualBasic/index.ts index 0496b4b89..706218dbc 100644 --- a/packages/csharp/src/builtins/Microsoft/VisualBasic/index.ts +++ b/packages/csharp/src/builtins/Microsoft/VisualBasic/index.ts @@ -1,7 +1,7 @@ import System from "../../System/index.js"; import { createLibrary } from "#createLibrary"; -import { LibrarySymbolReference } from "@alloy-js/core";export { default as FileIO } from "./FileIO/index.js"; +import type { LibrarySymbolReference } from "@alloy-js/core";export { default as FileIO } from "./FileIO/index.js"; type VisualBasicLibrary = LibrarySymbolReference & { AppWinStyle: LibrarySymbolReference & { diff --git a/packages/csharp/src/builtins/Microsoft/Win32/SafeHandles/index.ts b/packages/csharp/src/builtins/Microsoft/Win32/SafeHandles/index.ts index f3bf8224c..f5fd7b502 100644 --- a/packages/csharp/src/builtins/Microsoft/Win32/SafeHandles/index.ts +++ b/packages/csharp/src/builtins/Microsoft/Win32/SafeHandles/index.ts @@ -1,7 +1,7 @@ import System from "../../../System/index.js"; import { createLibrary } from "#createLibrary"; -import { LibrarySymbolReference } from "@alloy-js/core"; +import type { LibrarySymbolReference } from "@alloy-js/core"; type SafeHandlesLibrary = LibrarySymbolReference & { CriticalHandleMinusOneIsInvalid: LibrarySymbolReference & { diff --git a/packages/csharp/src/builtins/Microsoft/Win32/index.ts b/packages/csharp/src/builtins/Microsoft/Win32/index.ts index d8808f2be..c749fd706 100644 --- a/packages/csharp/src/builtins/Microsoft/Win32/index.ts +++ b/packages/csharp/src/builtins/Microsoft/Win32/index.ts @@ -2,7 +2,7 @@ import SafeHandles from "./SafeHandles/index.js"; import System from "../../System/index.js"; import { createLibrary } from "#createLibrary"; -import { LibrarySymbolReference } from "@alloy-js/core";export { default as SafeHandles } from "./SafeHandles/index.js"; +import type { LibrarySymbolReference } from "@alloy-js/core";export { default as SafeHandles } from "./SafeHandles/index.js"; type Win32Library = LibrarySymbolReference & { Registry: LibrarySymbolReference & { diff --git a/packages/csharp/src/builtins/Microsoft/index.ts b/packages/csharp/src/builtins/Microsoft/index.ts index ec20e45e4..a7fe93da5 100644 --- a/packages/csharp/src/builtins/Microsoft/index.ts +++ b/packages/csharp/src/builtins/Microsoft/index.ts @@ -1,5 +1,5 @@ import { createLibrary } from "#createLibrary"; -import { LibrarySymbolReference } from "@alloy-js/core";export { default as CSharp } from "./CSharp/index.js"; +import type { LibrarySymbolReference } from "@alloy-js/core";export { default as CSharp } from "./CSharp/index.js"; export { default as VisualBasic } from "./VisualBasic/index.js"; export { default as Win32 } from "./Win32/index.js"; diff --git a/packages/csharp/src/builtins/System/Buffers/Binary/index.ts b/packages/csharp/src/builtins/System/Buffers/Binary/index.ts index b4455144c..6c3ae1c15 100644 --- a/packages/csharp/src/builtins/System/Buffers/Binary/index.ts +++ b/packages/csharp/src/builtins/System/Buffers/Binary/index.ts @@ -1,5 +1,5 @@ import { createLibrary } from "#createLibrary"; -import { LibrarySymbolReference } from "@alloy-js/core"; +import type { LibrarySymbolReference } from "@alloy-js/core"; type BinaryLibrary = LibrarySymbolReference & { BinaryPrimitives: LibrarySymbolReference & { diff --git a/packages/csharp/src/builtins/System/Buffers/Text/index.ts b/packages/csharp/src/builtins/System/Buffers/Text/index.ts index bdd47124f..7af3767b8 100644 --- a/packages/csharp/src/builtins/System/Buffers/Text/index.ts +++ b/packages/csharp/src/builtins/System/Buffers/Text/index.ts @@ -1,5 +1,5 @@ import { createLibrary } from "#createLibrary"; -import { LibrarySymbolReference } from "@alloy-js/core"; +import type { LibrarySymbolReference } from "@alloy-js/core"; type TextLibrary = LibrarySymbolReference & { Base64: LibrarySymbolReference & { diff --git a/packages/csharp/src/builtins/System/Buffers/index.ts b/packages/csharp/src/builtins/System/Buffers/index.ts index d7abed65d..5f60f6ae9 100644 --- a/packages/csharp/src/builtins/System/Buffers/index.ts +++ b/packages/csharp/src/builtins/System/Buffers/index.ts @@ -1,7 +1,7 @@ import System from "../index.js"; import { createLibrary } from "#createLibrary"; -import { LibrarySymbolReference } from "@alloy-js/core";export { default as Binary } from "./Binary/index.js"; +import type { LibrarySymbolReference } from "@alloy-js/core";export { default as Binary } from "./Binary/index.js"; export { default as Text } from "./Text/index.js"; type BuffersLibrary = LibrarySymbolReference & { diff --git a/packages/csharp/src/builtins/System/CodeDom/Compiler/index.ts b/packages/csharp/src/builtins/System/CodeDom/Compiler/index.ts index d0021eb2b..82498094d 100644 --- a/packages/csharp/src/builtins/System/CodeDom/Compiler/index.ts +++ b/packages/csharp/src/builtins/System/CodeDom/Compiler/index.ts @@ -3,7 +3,7 @@ import IO from "../../IO/index.js"; import Text from "../../Text/index.js"; import { createLibrary } from "#createLibrary"; -import { LibrarySymbolReference } from "@alloy-js/core"; +import type { LibrarySymbolReference } from "@alloy-js/core"; type CompilerLibrary = LibrarySymbolReference & { GeneratedCodeAttribute: LibrarySymbolReference & { diff --git a/packages/csharp/src/builtins/System/CodeDom/index.ts b/packages/csharp/src/builtins/System/CodeDom/index.ts index 1db5a2989..cc1461e20 100644 --- a/packages/csharp/src/builtins/System/CodeDom/index.ts +++ b/packages/csharp/src/builtins/System/CodeDom/index.ts @@ -1,5 +1,5 @@ import { createLibrary } from "#createLibrary"; -import { LibrarySymbolReference } from "@alloy-js/core";export { default as Compiler } from "./Compiler/index.js"; +import type { LibrarySymbolReference } from "@alloy-js/core";export { default as Compiler } from "./Compiler/index.js"; type CodeDomLibrary = LibrarySymbolReference & { diff --git a/packages/csharp/src/builtins/System/Collections/Concurrent/index.ts b/packages/csharp/src/builtins/System/Collections/Concurrent/index.ts index 3097d5801..e636c0e3b 100644 --- a/packages/csharp/src/builtins/System/Collections/Concurrent/index.ts +++ b/packages/csharp/src/builtins/System/Collections/Concurrent/index.ts @@ -1,7 +1,7 @@ import System from "../../index.js"; import { createLibrary } from "#createLibrary"; -import { LibrarySymbolReference } from "@alloy-js/core"; +import type { LibrarySymbolReference } from "@alloy-js/core"; type ConcurrentLibrary = LibrarySymbolReference & { BlockingCollection: LibrarySymbolReference & { diff --git a/packages/csharp/src/builtins/System/Collections/Frozen/index.ts b/packages/csharp/src/builtins/System/Collections/Frozen/index.ts index 28d6ebcf0..810a18a21 100644 --- a/packages/csharp/src/builtins/System/Collections/Frozen/index.ts +++ b/packages/csharp/src/builtins/System/Collections/Frozen/index.ts @@ -1,7 +1,7 @@ import Generic from "../Generic/index.js"; import { createLibrary } from "#createLibrary"; -import { LibrarySymbolReference } from "@alloy-js/core"; +import type { LibrarySymbolReference } from "@alloy-js/core"; type FrozenLibrary = LibrarySymbolReference & { FrozenDictionary: LibrarySymbolReference & { diff --git a/packages/csharp/src/builtins/System/Collections/Generic/index.ts b/packages/csharp/src/builtins/System/Collections/Generic/index.ts index 35face706..c6ef62741 100644 --- a/packages/csharp/src/builtins/System/Collections/Generic/index.ts +++ b/packages/csharp/src/builtins/System/Collections/Generic/index.ts @@ -1,7 +1,7 @@ import System from "../../index.js"; import { createLibrary } from "#createLibrary"; -import { LibrarySymbolReference } from "@alloy-js/core"; +import type { LibrarySymbolReference } from "@alloy-js/core"; type GenericLibrary = LibrarySymbolReference & { CollectionExtensions: LibrarySymbolReference & { diff --git a/packages/csharp/src/builtins/System/Collections/Immutable/index.ts b/packages/csharp/src/builtins/System/Collections/Immutable/index.ts index ee254c80f..97c8541ed 100644 --- a/packages/csharp/src/builtins/System/Collections/Immutable/index.ts +++ b/packages/csharp/src/builtins/System/Collections/Immutable/index.ts @@ -2,7 +2,7 @@ import Generic from "../Generic/index.js"; import System from "../../index.js"; import { createLibrary } from "#createLibrary"; -import { LibrarySymbolReference } from "@alloy-js/core"; +import type { LibrarySymbolReference } from "@alloy-js/core"; type ImmutableLibrary = LibrarySymbolReference & { IImmutableDictionary: LibrarySymbolReference & { diff --git a/packages/csharp/src/builtins/System/Collections/ObjectModel/index.ts b/packages/csharp/src/builtins/System/Collections/ObjectModel/index.ts index 54ab07208..99192146e 100644 --- a/packages/csharp/src/builtins/System/Collections/ObjectModel/index.ts +++ b/packages/csharp/src/builtins/System/Collections/ObjectModel/index.ts @@ -2,7 +2,7 @@ import Generic from "../Generic/index.js"; import System from "../../index.js"; import { createLibrary } from "#createLibrary"; -import { LibrarySymbolReference } from "@alloy-js/core"; +import type { LibrarySymbolReference } from "@alloy-js/core"; type ObjectModelLibrary = LibrarySymbolReference & { Collection: LibrarySymbolReference & { diff --git a/packages/csharp/src/builtins/System/Collections/Specialized/index.ts b/packages/csharp/src/builtins/System/Collections/Specialized/index.ts index 32fac4881..ee41c9309 100644 --- a/packages/csharp/src/builtins/System/Collections/Specialized/index.ts +++ b/packages/csharp/src/builtins/System/Collections/Specialized/index.ts @@ -2,7 +2,7 @@ import Collections from "../index.js"; import System from "../../index.js"; import { createLibrary } from "#createLibrary"; -import { LibrarySymbolReference } from "@alloy-js/core"; +import type { LibrarySymbolReference } from "@alloy-js/core"; type SpecializedLibrary = LibrarySymbolReference & { BitVector32: LibrarySymbolReference & { diff --git a/packages/csharp/src/builtins/System/Collections/index.ts b/packages/csharp/src/builtins/System/Collections/index.ts index 162709de0..7715537dc 100644 --- a/packages/csharp/src/builtins/System/Collections/index.ts +++ b/packages/csharp/src/builtins/System/Collections/index.ts @@ -1,7 +1,7 @@ import System from "../index.js"; import { createLibrary } from "#createLibrary"; -import { LibrarySymbolReference } from "@alloy-js/core";export { default as Concurrent } from "./Concurrent/index.js"; +import type { LibrarySymbolReference } from "@alloy-js/core";export { default as Concurrent } from "./Concurrent/index.js"; export { default as Frozen } from "./Frozen/index.js"; export { default as Generic } from "./Generic/index.js"; export { default as Immutable } from "./Immutable/index.js"; diff --git a/packages/csharp/src/builtins/System/ComponentModel/DataAnnotations/Schema/index.ts b/packages/csharp/src/builtins/System/ComponentModel/DataAnnotations/Schema/index.ts index 148ba788a..6eb9be4ea 100644 --- a/packages/csharp/src/builtins/System/ComponentModel/DataAnnotations/Schema/index.ts +++ b/packages/csharp/src/builtins/System/ComponentModel/DataAnnotations/Schema/index.ts @@ -1,7 +1,7 @@ import System from "../../../index.js"; import { createLibrary } from "#createLibrary"; -import { LibrarySymbolReference } from "@alloy-js/core"; +import type { LibrarySymbolReference } from "@alloy-js/core"; type SchemaLibrary = LibrarySymbolReference & { ColumnAttribute: LibrarySymbolReference & { diff --git a/packages/csharp/src/builtins/System/ComponentModel/DataAnnotations/index.ts b/packages/csharp/src/builtins/System/ComponentModel/DataAnnotations/index.ts index f3d619aa6..d9d753834 100644 --- a/packages/csharp/src/builtins/System/ComponentModel/DataAnnotations/index.ts +++ b/packages/csharp/src/builtins/System/ComponentModel/DataAnnotations/index.ts @@ -2,7 +2,7 @@ import Generic from "../../Collections/Generic/index.js"; import System from "../../index.js"; import { createLibrary } from "#createLibrary"; -import { LibrarySymbolReference } from "@alloy-js/core";export { default as Schema } from "./Schema/index.js"; +import type { LibrarySymbolReference } from "@alloy-js/core";export { default as Schema } from "./Schema/index.js"; type DataAnnotationsLibrary = LibrarySymbolReference & { AllowedValuesAttribute: LibrarySymbolReference & { diff --git a/packages/csharp/src/builtins/System/ComponentModel/Design/Serialization/index.ts b/packages/csharp/src/builtins/System/ComponentModel/Design/Serialization/index.ts index a48a41f74..5790c8cb5 100644 --- a/packages/csharp/src/builtins/System/ComponentModel/Design/Serialization/index.ts +++ b/packages/csharp/src/builtins/System/ComponentModel/Design/Serialization/index.ts @@ -4,7 +4,7 @@ import System from "../../../index.js"; import Reflection from "../../../Reflection/index.js"; import { createLibrary } from "#createLibrary"; -import { LibrarySymbolReference } from "@alloy-js/core"; +import type { LibrarySymbolReference } from "@alloy-js/core"; type SerializationLibrary = LibrarySymbolReference & { ComponentSerializationService: LibrarySymbolReference & { diff --git a/packages/csharp/src/builtins/System/ComponentModel/Design/index.ts b/packages/csharp/src/builtins/System/ComponentModel/Design/index.ts index 5dccf489b..9e3d03927 100644 --- a/packages/csharp/src/builtins/System/ComponentModel/Design/index.ts +++ b/packages/csharp/src/builtins/System/ComponentModel/Design/index.ts @@ -3,7 +3,7 @@ import ComponentModel from "../index.js"; import System from "../../index.js"; import { createLibrary } from "#createLibrary"; -import { LibrarySymbolReference } from "@alloy-js/core";export { default as Serialization } from "./Serialization/index.js"; +import type { LibrarySymbolReference } from "@alloy-js/core";export { default as Serialization } from "./Serialization/index.js"; type DesignLibrary = LibrarySymbolReference & { ActiveDesignerEventArgs: LibrarySymbolReference & { diff --git a/packages/csharp/src/builtins/System/ComponentModel/index.ts b/packages/csharp/src/builtins/System/ComponentModel/index.ts index 35d9f00b8..d0eeb15fc 100644 --- a/packages/csharp/src/builtins/System/ComponentModel/index.ts +++ b/packages/csharp/src/builtins/System/ComponentModel/index.ts @@ -4,7 +4,7 @@ import System from "../index.js"; import Threading from "../Threading/index.js"; import { createLibrary } from "#createLibrary"; -import { LibrarySymbolReference } from "@alloy-js/core";export { default as DataAnnotations } from "./DataAnnotations/index.js"; +import type { LibrarySymbolReference } from "@alloy-js/core";export { default as DataAnnotations } from "./DataAnnotations/index.js"; export { default as Design } from "./Design/index.js"; type ComponentModelLibrary = LibrarySymbolReference & { diff --git a/packages/csharp/src/builtins/System/Configuration/Assemblies/index.ts b/packages/csharp/src/builtins/System/Configuration/Assemblies/index.ts index 6c1c89790..a3b78646a 100644 --- a/packages/csharp/src/builtins/System/Configuration/Assemblies/index.ts +++ b/packages/csharp/src/builtins/System/Configuration/Assemblies/index.ts @@ -1,5 +1,5 @@ import { createLibrary } from "#createLibrary"; -import { LibrarySymbolReference } from "@alloy-js/core"; +import type { LibrarySymbolReference } from "@alloy-js/core"; type AssembliesLibrary = LibrarySymbolReference & { AssemblyHashAlgorithm: LibrarySymbolReference & { diff --git a/packages/csharp/src/builtins/System/Configuration/index.ts b/packages/csharp/src/builtins/System/Configuration/index.ts index b70a14cec..94de645e7 100644 --- a/packages/csharp/src/builtins/System/Configuration/index.ts +++ b/packages/csharp/src/builtins/System/Configuration/index.ts @@ -1,5 +1,5 @@ import { createLibrary } from "#createLibrary"; -import { LibrarySymbolReference } from "@alloy-js/core";export { default as Assemblies } from "./Assemblies/index.js"; +import type { LibrarySymbolReference } from "@alloy-js/core";export { default as Assemblies } from "./Assemblies/index.js"; type ConfigurationLibrary = LibrarySymbolReference & { diff --git a/packages/csharp/src/builtins/System/Data/Common/index.ts b/packages/csharp/src/builtins/System/Data/Common/index.ts index fbb45c361..a3c51e566 100644 --- a/packages/csharp/src/builtins/System/Data/Common/index.ts +++ b/packages/csharp/src/builtins/System/Data/Common/index.ts @@ -3,7 +3,7 @@ import Data from "../index.js"; import System from "../../index.js"; import { createLibrary } from "#createLibrary"; -import { LibrarySymbolReference } from "@alloy-js/core"; +import type { LibrarySymbolReference } from "@alloy-js/core"; type CommonLibrary = LibrarySymbolReference & { CatalogLocation: LibrarySymbolReference & { diff --git a/packages/csharp/src/builtins/System/Data/SqlTypes/index.ts b/packages/csharp/src/builtins/System/Data/SqlTypes/index.ts index 88aa62959..b6f933f03 100644 --- a/packages/csharp/src/builtins/System/Data/SqlTypes/index.ts +++ b/packages/csharp/src/builtins/System/Data/SqlTypes/index.ts @@ -3,7 +3,7 @@ import System from "../../index.js"; import IO from "../../IO/index.js"; import { createLibrary } from "#createLibrary"; -import { LibrarySymbolReference } from "@alloy-js/core"; +import type { LibrarySymbolReference } from "@alloy-js/core"; type SqlTypesLibrary = LibrarySymbolReference & { INullable: LibrarySymbolReference & { diff --git a/packages/csharp/src/builtins/System/Data/index.ts b/packages/csharp/src/builtins/System/Data/index.ts index 40303f692..f0cb6eaaa 100644 --- a/packages/csharp/src/builtins/System/Data/index.ts +++ b/packages/csharp/src/builtins/System/Data/index.ts @@ -4,7 +4,7 @@ import Globalization from "../Globalization/index.js"; import System from "../index.js"; import { createLibrary } from "#createLibrary"; -import { LibrarySymbolReference } from "@alloy-js/core";export { default as Common } from "./Common/index.js"; +import type { LibrarySymbolReference } from "@alloy-js/core";export { default as Common } from "./Common/index.js"; export { default as SqlTypes } from "./SqlTypes/index.js"; type DataLibrary = LibrarySymbolReference & { diff --git a/packages/csharp/src/builtins/System/Diagnostics/CodeAnalysis/index.ts b/packages/csharp/src/builtins/System/Diagnostics/CodeAnalysis/index.ts index 356536a27..dd018b799 100644 --- a/packages/csharp/src/builtins/System/Diagnostics/CodeAnalysis/index.ts +++ b/packages/csharp/src/builtins/System/Diagnostics/CodeAnalysis/index.ts @@ -1,7 +1,7 @@ import System from "../../index.js"; import { createLibrary } from "#createLibrary"; -import { LibrarySymbolReference } from "@alloy-js/core"; +import type { LibrarySymbolReference } from "@alloy-js/core"; type CodeAnalysisLibrary = LibrarySymbolReference & { AllowNullAttribute: LibrarySymbolReference & { diff --git a/packages/csharp/src/builtins/System/Diagnostics/Contracts/index.ts b/packages/csharp/src/builtins/System/Diagnostics/Contracts/index.ts index 758cf3db2..b572bf53a 100644 --- a/packages/csharp/src/builtins/System/Diagnostics/Contracts/index.ts +++ b/packages/csharp/src/builtins/System/Diagnostics/Contracts/index.ts @@ -1,7 +1,7 @@ import System from "../../index.js"; import { createLibrary } from "#createLibrary"; -import { LibrarySymbolReference } from "@alloy-js/core"; +import type { LibrarySymbolReference } from "@alloy-js/core"; type ContractsLibrary = LibrarySymbolReference & { Contract: LibrarySymbolReference & { diff --git a/packages/csharp/src/builtins/System/Diagnostics/Metrics/index.ts b/packages/csharp/src/builtins/System/Diagnostics/Metrics/index.ts index 9ead0c762..60dc5a38f 100644 --- a/packages/csharp/src/builtins/System/Diagnostics/Metrics/index.ts +++ b/packages/csharp/src/builtins/System/Diagnostics/Metrics/index.ts @@ -2,7 +2,7 @@ import Generic from "../../Collections/Generic/index.js"; import System from "../../index.js"; import { createLibrary } from "#createLibrary"; -import { LibrarySymbolReference } from "@alloy-js/core"; +import type { LibrarySymbolReference } from "@alloy-js/core"; type MetricsLibrary = LibrarySymbolReference & { Counter: LibrarySymbolReference & { diff --git a/packages/csharp/src/builtins/System/Diagnostics/SymbolStore/index.ts b/packages/csharp/src/builtins/System/Diagnostics/SymbolStore/index.ts index 681ca3cba..aafaebdf6 100644 --- a/packages/csharp/src/builtins/System/Diagnostics/SymbolStore/index.ts +++ b/packages/csharp/src/builtins/System/Diagnostics/SymbolStore/index.ts @@ -1,7 +1,7 @@ import System from "../../index.js"; import { createLibrary } from "#createLibrary"; -import { LibrarySymbolReference } from "@alloy-js/core"; +import type { LibrarySymbolReference } from "@alloy-js/core"; type SymbolStoreLibrary = LibrarySymbolReference & { ISymbolBinder: LibrarySymbolReference & { diff --git a/packages/csharp/src/builtins/System/Diagnostics/Tracing/index.ts b/packages/csharp/src/builtins/System/Diagnostics/Tracing/index.ts index 97880fdec..fea932bec 100644 --- a/packages/csharp/src/builtins/System/Diagnostics/Tracing/index.ts +++ b/packages/csharp/src/builtins/System/Diagnostics/Tracing/index.ts @@ -3,7 +3,7 @@ import ObjectModel from "../../Collections/ObjectModel/index.js"; import System from "../../index.js"; import { createLibrary } from "#createLibrary"; -import { LibrarySymbolReference } from "@alloy-js/core"; +import type { LibrarySymbolReference } from "@alloy-js/core"; type TracingLibrary = LibrarySymbolReference & { DiagnosticCounter: LibrarySymbolReference & { diff --git a/packages/csharp/src/builtins/System/Diagnostics/index.ts b/packages/csharp/src/builtins/System/Diagnostics/index.ts index 42d874f32..0def5f164 100644 --- a/packages/csharp/src/builtins/System/Diagnostics/index.ts +++ b/packages/csharp/src/builtins/System/Diagnostics/index.ts @@ -10,7 +10,7 @@ import Security from "../Security/index.js"; import Text from "../Text/index.js"; import { createLibrary } from "#createLibrary"; -import { LibrarySymbolReference } from "@alloy-js/core";export { default as CodeAnalysis } from "./CodeAnalysis/index.js"; +import type { LibrarySymbolReference } from "@alloy-js/core";export { default as CodeAnalysis } from "./CodeAnalysis/index.js"; export { default as Contracts } from "./Contracts/index.js"; export { default as Metrics } from "./Metrics/index.js"; export { default as SymbolStore } from "./SymbolStore/index.js"; diff --git a/packages/csharp/src/builtins/System/Drawing/index.ts b/packages/csharp/src/builtins/System/Drawing/index.ts index 8327a9bab..924d2cd8d 100644 --- a/packages/csharp/src/builtins/System/Drawing/index.ts +++ b/packages/csharp/src/builtins/System/Drawing/index.ts @@ -1,7 +1,7 @@ import System from "../index.js"; import { createLibrary } from "#createLibrary"; -import { LibrarySymbolReference } from "@alloy-js/core"; +import type { LibrarySymbolReference } from "@alloy-js/core"; type DrawingLibrary = LibrarySymbolReference & { Color: LibrarySymbolReference & { diff --git a/packages/csharp/src/builtins/System/Dynamic/index.ts b/packages/csharp/src/builtins/System/Dynamic/index.ts index afec71afa..cc437b468 100644 --- a/packages/csharp/src/builtins/System/Dynamic/index.ts +++ b/packages/csharp/src/builtins/System/Dynamic/index.ts @@ -3,7 +3,7 @@ import System from "../index.js"; import Expressions from "../Linq/Expressions/index.js"; import { createLibrary } from "#createLibrary"; -import { LibrarySymbolReference } from "@alloy-js/core"; +import type { LibrarySymbolReference } from "@alloy-js/core"; type DynamicLibrary = LibrarySymbolReference & { BinaryOperationBinder: LibrarySymbolReference & { diff --git a/packages/csharp/src/builtins/System/Formats/Asn1/index.ts b/packages/csharp/src/builtins/System/Formats/Asn1/index.ts index ad54590a8..d6e2b8fec 100644 --- a/packages/csharp/src/builtins/System/Formats/Asn1/index.ts +++ b/packages/csharp/src/builtins/System/Formats/Asn1/index.ts @@ -1,7 +1,7 @@ import System from "../../index.js"; import { createLibrary } from "#createLibrary"; -import { LibrarySymbolReference } from "@alloy-js/core"; +import type { LibrarySymbolReference } from "@alloy-js/core"; type Asn1Library = LibrarySymbolReference & { Asn1Tag: LibrarySymbolReference & { diff --git a/packages/csharp/src/builtins/System/Formats/Tar/index.ts b/packages/csharp/src/builtins/System/Formats/Tar/index.ts index 03ea3b387..10faabf16 100644 --- a/packages/csharp/src/builtins/System/Formats/Tar/index.ts +++ b/packages/csharp/src/builtins/System/Formats/Tar/index.ts @@ -3,7 +3,7 @@ import System from "../../index.js"; import IO from "../../IO/index.js"; import { createLibrary } from "#createLibrary"; -import { LibrarySymbolReference } from "@alloy-js/core"; +import type { LibrarySymbolReference } from "@alloy-js/core"; type TarLibrary = LibrarySymbolReference & { GnuTarEntry: LibrarySymbolReference & { diff --git a/packages/csharp/src/builtins/System/Formats/index.ts b/packages/csharp/src/builtins/System/Formats/index.ts index 82aa77593..404f17bee 100644 --- a/packages/csharp/src/builtins/System/Formats/index.ts +++ b/packages/csharp/src/builtins/System/Formats/index.ts @@ -1,5 +1,5 @@ import { createLibrary } from "#createLibrary"; -import { LibrarySymbolReference } from "@alloy-js/core";export { default as Asn1 } from "./Asn1/index.js"; +import type { LibrarySymbolReference } from "@alloy-js/core";export { default as Asn1 } from "./Asn1/index.js"; export { default as Tar } from "./Tar/index.js"; type FormatsLibrary = LibrarySymbolReference & { diff --git a/packages/csharp/src/builtins/System/Globalization/index.ts b/packages/csharp/src/builtins/System/Globalization/index.ts index 2d8a5af63..535d9ead6 100644 --- a/packages/csharp/src/builtins/System/Globalization/index.ts +++ b/packages/csharp/src/builtins/System/Globalization/index.ts @@ -1,7 +1,7 @@ import System from "../index.js"; import { createLibrary } from "#createLibrary"; -import { LibrarySymbolReference } from "@alloy-js/core"; +import type { LibrarySymbolReference } from "@alloy-js/core"; type GlobalizationLibrary = LibrarySymbolReference & { Calendar: LibrarySymbolReference & { diff --git a/packages/csharp/src/builtins/System/IO/Compression/index.ts b/packages/csharp/src/builtins/System/IO/Compression/index.ts index 102564483..187e84fcb 100644 --- a/packages/csharp/src/builtins/System/IO/Compression/index.ts +++ b/packages/csharp/src/builtins/System/IO/Compression/index.ts @@ -3,7 +3,7 @@ import System from "../../index.js"; import IO from "../index.js"; import { createLibrary } from "#createLibrary"; -import { LibrarySymbolReference } from "@alloy-js/core"; +import type { LibrarySymbolReference } from "@alloy-js/core"; type CompressionLibrary = LibrarySymbolReference & { BrotliCompressionOptions: LibrarySymbolReference & { diff --git a/packages/csharp/src/builtins/System/IO/Enumeration/index.ts b/packages/csharp/src/builtins/System/IO/Enumeration/index.ts index 4a8de5dff..76a6ed41e 100644 --- a/packages/csharp/src/builtins/System/IO/Enumeration/index.ts +++ b/packages/csharp/src/builtins/System/IO/Enumeration/index.ts @@ -2,7 +2,7 @@ import System from "../../index.js"; import IO from "../index.js"; import { createLibrary } from "#createLibrary"; -import { LibrarySymbolReference } from "@alloy-js/core"; +import type { LibrarySymbolReference } from "@alloy-js/core"; type EnumerationLibrary = LibrarySymbolReference & { FileSystemEntry: LibrarySymbolReference & { diff --git a/packages/csharp/src/builtins/System/IO/IsolatedStorage/index.ts b/packages/csharp/src/builtins/System/IO/IsolatedStorage/index.ts index 29ae57a29..9ea81e322 100644 --- a/packages/csharp/src/builtins/System/IO/IsolatedStorage/index.ts +++ b/packages/csharp/src/builtins/System/IO/IsolatedStorage/index.ts @@ -2,7 +2,7 @@ import SafeHandles from "../../../Microsoft/Win32/SafeHandles/index.js"; import System from "../../index.js"; import { createLibrary } from "#createLibrary"; -import { LibrarySymbolReference } from "@alloy-js/core"; +import type { LibrarySymbolReference } from "@alloy-js/core"; type IsolatedStorageLibrary = LibrarySymbolReference & { INormalizeForIsolatedStorage: LibrarySymbolReference & { diff --git a/packages/csharp/src/builtins/System/IO/MemoryMappedFiles/index.ts b/packages/csharp/src/builtins/System/IO/MemoryMappedFiles/index.ts index 2da894ae9..9e013e327 100644 --- a/packages/csharp/src/builtins/System/IO/MemoryMappedFiles/index.ts +++ b/packages/csharp/src/builtins/System/IO/MemoryMappedFiles/index.ts @@ -2,7 +2,7 @@ import SafeHandles from "../../../Microsoft/Win32/SafeHandles/index.js"; import System from "../../index.js"; import { createLibrary } from "#createLibrary"; -import { LibrarySymbolReference } from "@alloy-js/core"; +import type { LibrarySymbolReference } from "@alloy-js/core"; type MemoryMappedFilesLibrary = LibrarySymbolReference & { MemoryMappedFile: LibrarySymbolReference & { diff --git a/packages/csharp/src/builtins/System/IO/Pipelines/index.ts b/packages/csharp/src/builtins/System/IO/Pipelines/index.ts index f3d87df5a..45270b9dd 100644 --- a/packages/csharp/src/builtins/System/IO/Pipelines/index.ts +++ b/packages/csharp/src/builtins/System/IO/Pipelines/index.ts @@ -2,7 +2,7 @@ import Buffers from "../../Buffers/index.js"; import System from "../../index.js"; import { createLibrary } from "#createLibrary"; -import { LibrarySymbolReference } from "@alloy-js/core"; +import type { LibrarySymbolReference } from "@alloy-js/core"; type PipelinesLibrary = LibrarySymbolReference & { FlushResult: LibrarySymbolReference & { diff --git a/packages/csharp/src/builtins/System/IO/Pipes/index.ts b/packages/csharp/src/builtins/System/IO/Pipes/index.ts index ab2ff1e2c..10070c7f2 100644 --- a/packages/csharp/src/builtins/System/IO/Pipes/index.ts +++ b/packages/csharp/src/builtins/System/IO/Pipes/index.ts @@ -2,7 +2,7 @@ import SafeHandles from "../../../Microsoft/Win32/SafeHandles/index.js"; import System from "../../index.js"; import { createLibrary } from "#createLibrary"; -import { LibrarySymbolReference } from "@alloy-js/core"; +import type { LibrarySymbolReference } from "@alloy-js/core"; type PipesLibrary = LibrarySymbolReference & { AnonymousPipeClientStream: LibrarySymbolReference & { diff --git a/packages/csharp/src/builtins/System/IO/index.ts b/packages/csharp/src/builtins/System/IO/index.ts index e9415f291..3b1d311f5 100644 --- a/packages/csharp/src/builtins/System/IO/index.ts +++ b/packages/csharp/src/builtins/System/IO/index.ts @@ -5,7 +5,7 @@ import System from "../index.js"; import Text from "../Text/index.js"; import { createLibrary } from "#createLibrary"; -import { LibrarySymbolReference } from "@alloy-js/core";export { default as Compression } from "./Compression/index.js"; +import type { LibrarySymbolReference } from "@alloy-js/core";export { default as Compression } from "./Compression/index.js"; export { default as Enumeration } from "./Enumeration/index.js"; export { default as IsolatedStorage } from "./IsolatedStorage/index.js"; export { default as MemoryMappedFiles } from "./MemoryMappedFiles/index.js"; diff --git a/packages/csharp/src/builtins/System/Linq/Expressions/index.ts b/packages/csharp/src/builtins/System/Linq/Expressions/index.ts index f33e58fce..29ce0608c 100644 --- a/packages/csharp/src/builtins/System/Linq/Expressions/index.ts +++ b/packages/csharp/src/builtins/System/Linq/Expressions/index.ts @@ -4,7 +4,7 @@ import Reflection from "../../Reflection/index.js"; import CompilerServices from "../../Runtime/CompilerServices/index.js"; import { createLibrary } from "#createLibrary"; -import { LibrarySymbolReference } from "@alloy-js/core"; +import type { LibrarySymbolReference } from "@alloy-js/core"; type ExpressionsLibrary = LibrarySymbolReference & { BinaryExpression: LibrarySymbolReference & { diff --git a/packages/csharp/src/builtins/System/Linq/index.ts b/packages/csharp/src/builtins/System/Linq/index.ts index 0287257dc..908c9c4ec 100644 --- a/packages/csharp/src/builtins/System/Linq/index.ts +++ b/packages/csharp/src/builtins/System/Linq/index.ts @@ -2,7 +2,7 @@ import Generic from "../Collections/Generic/index.js"; import System from "../index.js"; import { createLibrary } from "#createLibrary"; -import { LibrarySymbolReference } from "@alloy-js/core";export { default as Expressions } from "./Expressions/index.js"; +import type { LibrarySymbolReference } from "@alloy-js/core";export { default as Expressions } from "./Expressions/index.js"; type LinqLibrary = LibrarySymbolReference & { Enumerable: LibrarySymbolReference & { diff --git a/packages/csharp/src/builtins/System/Net/Cache/index.ts b/packages/csharp/src/builtins/System/Net/Cache/index.ts index 71ed424dd..0840a40cb 100644 --- a/packages/csharp/src/builtins/System/Net/Cache/index.ts +++ b/packages/csharp/src/builtins/System/Net/Cache/index.ts @@ -1,7 +1,7 @@ import System from "../../index.js"; import { createLibrary } from "#createLibrary"; -import { LibrarySymbolReference } from "@alloy-js/core"; +import type { LibrarySymbolReference } from "@alloy-js/core"; type CacheLibrary = LibrarySymbolReference & { HttpCacheAgeControl: LibrarySymbolReference & { diff --git a/packages/csharp/src/builtins/System/Net/Http/Headers/index.ts b/packages/csharp/src/builtins/System/Net/Http/Headers/index.ts index dd628a6b2..e3b862cb8 100644 --- a/packages/csharp/src/builtins/System/Net/Http/Headers/index.ts +++ b/packages/csharp/src/builtins/System/Net/Http/Headers/index.ts @@ -2,7 +2,7 @@ import Generic from "../../../Collections/Generic/index.js"; import System from "../../../index.js"; import { createLibrary } from "#createLibrary"; -import { LibrarySymbolReference } from "@alloy-js/core"; +import type { LibrarySymbolReference } from "@alloy-js/core"; type HeadersLibrary = LibrarySymbolReference & { AuthenticationHeaderValue: LibrarySymbolReference & { diff --git a/packages/csharp/src/builtins/System/Net/Http/Json/index.ts b/packages/csharp/src/builtins/System/Net/Http/Json/index.ts index 6c0cffd7e..e75198b43 100644 --- a/packages/csharp/src/builtins/System/Net/Http/Json/index.ts +++ b/packages/csharp/src/builtins/System/Net/Http/Json/index.ts @@ -1,7 +1,7 @@ import System from "../../../index.js"; import { createLibrary } from "#createLibrary"; -import { LibrarySymbolReference } from "@alloy-js/core"; +import type { LibrarySymbolReference } from "@alloy-js/core"; type JsonLibrary = LibrarySymbolReference & { HttpClientJsonExtensions: LibrarySymbolReference & { diff --git a/packages/csharp/src/builtins/System/Net/Http/Metrics/index.ts b/packages/csharp/src/builtins/System/Net/Http/Metrics/index.ts index 8943b843e..0bbb85d02 100644 --- a/packages/csharp/src/builtins/System/Net/Http/Metrics/index.ts +++ b/packages/csharp/src/builtins/System/Net/Http/Metrics/index.ts @@ -2,7 +2,7 @@ import System from "../../../index.js"; import Http from "../index.js"; import { createLibrary } from "#createLibrary"; -import { LibrarySymbolReference } from "@alloy-js/core"; +import type { LibrarySymbolReference } from "@alloy-js/core"; type MetricsLibrary = LibrarySymbolReference & { HttpMetricsEnrichmentContext: LibrarySymbolReference & { diff --git a/packages/csharp/src/builtins/System/Net/Http/index.ts b/packages/csharp/src/builtins/System/Net/Http/index.ts index 95187a696..b4aae6646 100644 --- a/packages/csharp/src/builtins/System/Net/Http/index.ts +++ b/packages/csharp/src/builtins/System/Net/Http/index.ts @@ -10,7 +10,7 @@ import Authentication from "../../Security/Authentication/index.js"; import X509Certificates from "../../Security/Cryptography/X509Certificates/index.js"; import { createLibrary } from "#createLibrary"; -import { LibrarySymbolReference } from "@alloy-js/core";export { default as Headers } from "./Headers/index.js"; +import type { LibrarySymbolReference } from "@alloy-js/core";export { default as Headers } from "./Headers/index.js"; export { default as Json } from "./Json/index.js"; export { default as Metrics } from "./Metrics/index.js"; diff --git a/packages/csharp/src/builtins/System/Net/Mail/index.ts b/packages/csharp/src/builtins/System/Net/Mail/index.ts index 8ac812ed2..14d18271d 100644 --- a/packages/csharp/src/builtins/System/Net/Mail/index.ts +++ b/packages/csharp/src/builtins/System/Net/Mail/index.ts @@ -7,7 +7,7 @@ import X509Certificates from "../../Security/Cryptography/X509Certificates/index import Text from "../../Text/index.js"; import { createLibrary } from "#createLibrary"; -import { LibrarySymbolReference } from "@alloy-js/core"; +import type { LibrarySymbolReference } from "@alloy-js/core"; type MailLibrary = LibrarySymbolReference & { AlternateView: LibrarySymbolReference & { diff --git a/packages/csharp/src/builtins/System/Net/Mime/index.ts b/packages/csharp/src/builtins/System/Net/Mime/index.ts index 342ce801c..a3bbb4d24 100644 --- a/packages/csharp/src/builtins/System/Net/Mime/index.ts +++ b/packages/csharp/src/builtins/System/Net/Mime/index.ts @@ -2,7 +2,7 @@ import Specialized from "../../Collections/Specialized/index.js"; import System from "../../index.js"; import { createLibrary } from "#createLibrary"; -import { LibrarySymbolReference } from "@alloy-js/core"; +import type { LibrarySymbolReference } from "@alloy-js/core"; type MimeLibrary = LibrarySymbolReference & { ContentDisposition: LibrarySymbolReference & { diff --git a/packages/csharp/src/builtins/System/Net/NetworkInformation/index.ts b/packages/csharp/src/builtins/System/Net/NetworkInformation/index.ts index 6276575a1..fa53f7764 100644 --- a/packages/csharp/src/builtins/System/Net/NetworkInformation/index.ts +++ b/packages/csharp/src/builtins/System/Net/NetworkInformation/index.ts @@ -2,7 +2,7 @@ import System from "../../index.js"; import Net from "../index.js"; import { createLibrary } from "#createLibrary"; -import { LibrarySymbolReference } from "@alloy-js/core"; +import type { LibrarySymbolReference } from "@alloy-js/core"; type NetworkInformationLibrary = LibrarySymbolReference & { DuplicateAddressDetectionState: LibrarySymbolReference & { diff --git a/packages/csharp/src/builtins/System/Net/Quic/index.ts b/packages/csharp/src/builtins/System/Net/Quic/index.ts index ba4651157..a1c5dcd23 100644 --- a/packages/csharp/src/builtins/System/Net/Quic/index.ts +++ b/packages/csharp/src/builtins/System/Net/Quic/index.ts @@ -6,7 +6,7 @@ import X509Certificates from "../../Security/Cryptography/X509Certificates/index import Tasks from "../../Threading/Tasks/index.js"; import { createLibrary } from "#createLibrary"; -import { LibrarySymbolReference } from "@alloy-js/core"; +import type { LibrarySymbolReference } from "@alloy-js/core"; type QuicLibrary = LibrarySymbolReference & { QuicAbortDirection: LibrarySymbolReference & { diff --git a/packages/csharp/src/builtins/System/Net/Security/index.ts b/packages/csharp/src/builtins/System/Net/Security/index.ts index 4d19d2c1c..c3d943f88 100644 --- a/packages/csharp/src/builtins/System/Net/Security/index.ts +++ b/packages/csharp/src/builtins/System/Net/Security/index.ts @@ -9,7 +9,7 @@ import X509Certificates from "../../Security/Cryptography/X509Certificates/index import Principal from "../../Security/Principal/index.js"; import { createLibrary } from "#createLibrary"; -import { LibrarySymbolReference } from "@alloy-js/core"; +import type { LibrarySymbolReference } from "@alloy-js/core"; type SecurityLibrary = LibrarySymbolReference & { AuthenticatedStream: LibrarySymbolReference & { diff --git a/packages/csharp/src/builtins/System/Net/Sockets/index.ts b/packages/csharp/src/builtins/System/Net/Sockets/index.ts index 577c8711d..1b6f3abfa 100644 --- a/packages/csharp/src/builtins/System/Net/Sockets/index.ts +++ b/packages/csharp/src/builtins/System/Net/Sockets/index.ts @@ -4,7 +4,7 @@ import IO from "../../IO/index.js"; import Net from "../index.js"; import { createLibrary } from "#createLibrary"; -import { LibrarySymbolReference } from "@alloy-js/core"; +import type { LibrarySymbolReference } from "@alloy-js/core"; type SocketsLibrary = LibrarySymbolReference & { AddressFamily: LibrarySymbolReference & { diff --git a/packages/csharp/src/builtins/System/Net/WebSockets/index.ts b/packages/csharp/src/builtins/System/Net/WebSockets/index.ts index 2dae0a439..bc807f1db 100644 --- a/packages/csharp/src/builtins/System/Net/WebSockets/index.ts +++ b/packages/csharp/src/builtins/System/Net/WebSockets/index.ts @@ -8,7 +8,7 @@ import X509Certificates from "../../Security/Cryptography/X509Certificates/index import Principal from "../../Security/Principal/index.js"; import { createLibrary } from "#createLibrary"; -import { LibrarySymbolReference } from "@alloy-js/core"; +import type { LibrarySymbolReference } from "@alloy-js/core"; type WebSocketsLibrary = LibrarySymbolReference & { ClientWebSocket: LibrarySymbolReference & { diff --git a/packages/csharp/src/builtins/System/Net/index.ts b/packages/csharp/src/builtins/System/Net/index.ts index 73e047983..1105ae79e 100644 --- a/packages/csharp/src/builtins/System/Net/index.ts +++ b/packages/csharp/src/builtins/System/Net/index.ts @@ -11,7 +11,7 @@ import Principal from "../Security/Principal/index.js"; import Text from "../Text/index.js"; import { createLibrary } from "#createLibrary"; -import { LibrarySymbolReference } from "@alloy-js/core";export { default as Cache } from "./Cache/index.js"; +import type { LibrarySymbolReference } from "@alloy-js/core";export { default as Cache } from "./Cache/index.js"; export { default as Http } from "./Http/index.js"; export { default as Mail } from "./Mail/index.js"; export { default as Mime } from "./Mime/index.js"; diff --git a/packages/csharp/src/builtins/System/Numerics/index.ts b/packages/csharp/src/builtins/System/Numerics/index.ts index 566c8dcb5..8e8bffe48 100644 --- a/packages/csharp/src/builtins/System/Numerics/index.ts +++ b/packages/csharp/src/builtins/System/Numerics/index.ts @@ -1,7 +1,7 @@ import System from "../index.js"; import { createLibrary } from "#createLibrary"; -import { LibrarySymbolReference } from "@alloy-js/core"; +import type { LibrarySymbolReference } from "@alloy-js/core"; type NumericsLibrary = LibrarySymbolReference & { BigInteger: LibrarySymbolReference & { diff --git a/packages/csharp/src/builtins/System/Reflection/Emit/index.ts b/packages/csharp/src/builtins/System/Reflection/Emit/index.ts index 80e6eab4b..11da46dfb 100644 --- a/packages/csharp/src/builtins/System/Reflection/Emit/index.ts +++ b/packages/csharp/src/builtins/System/Reflection/Emit/index.ts @@ -2,7 +2,7 @@ import System from "../../index.js"; import Reflection from "../index.js"; import { createLibrary } from "#createLibrary"; -import { LibrarySymbolReference } from "@alloy-js/core"; +import type { LibrarySymbolReference } from "@alloy-js/core"; type EmitLibrary = LibrarySymbolReference & { AssemblyBuilder: LibrarySymbolReference & { diff --git a/packages/csharp/src/builtins/System/Reflection/Metadata/Ecma335/index.ts b/packages/csharp/src/builtins/System/Reflection/Metadata/Ecma335/index.ts index 3404e28ea..d8cc797e6 100644 --- a/packages/csharp/src/builtins/System/Reflection/Metadata/Ecma335/index.ts +++ b/packages/csharp/src/builtins/System/Reflection/Metadata/Ecma335/index.ts @@ -3,7 +3,7 @@ import System from "../../../index.js"; import Metadata from "../index.js"; import { createLibrary } from "#createLibrary"; -import { LibrarySymbolReference } from "@alloy-js/core"; +import type { LibrarySymbolReference } from "@alloy-js/core"; type Ecma335Library = LibrarySymbolReference & { ArrayShapeEncoder: LibrarySymbolReference & { diff --git a/packages/csharp/src/builtins/System/Reflection/Metadata/index.ts b/packages/csharp/src/builtins/System/Reflection/Metadata/index.ts index a5118d4c3..799129194 100644 --- a/packages/csharp/src/builtins/System/Reflection/Metadata/index.ts +++ b/packages/csharp/src/builtins/System/Reflection/Metadata/index.ts @@ -4,7 +4,7 @@ import Reflection from "../index.js"; import Text from "../../Text/index.js"; import { createLibrary } from "#createLibrary"; -import { LibrarySymbolReference } from "@alloy-js/core";export { default as Ecma335 } from "./Ecma335/index.js"; +import type { LibrarySymbolReference } from "@alloy-js/core";export { default as Ecma335 } from "./Ecma335/index.js"; type MetadataLibrary = LibrarySymbolReference & { ArrayShape: LibrarySymbolReference & { diff --git a/packages/csharp/src/builtins/System/Reflection/PortableExecutable/index.ts b/packages/csharp/src/builtins/System/Reflection/PortableExecutable/index.ts index fc64107cd..eba46ac4c 100644 --- a/packages/csharp/src/builtins/System/Reflection/PortableExecutable/index.ts +++ b/packages/csharp/src/builtins/System/Reflection/PortableExecutable/index.ts @@ -2,7 +2,7 @@ import Immutable from "../../Collections/Immutable/index.js"; import System from "../../index.js"; import { createLibrary } from "#createLibrary"; -import { LibrarySymbolReference } from "@alloy-js/core"; +import type { LibrarySymbolReference } from "@alloy-js/core"; type PortableExecutableLibrary = LibrarySymbolReference & { Characteristics: LibrarySymbolReference & { diff --git a/packages/csharp/src/builtins/System/Reflection/index.ts b/packages/csharp/src/builtins/System/Reflection/index.ts index 610c94bd6..c2d90bbb2 100644 --- a/packages/csharp/src/builtins/System/Reflection/index.ts +++ b/packages/csharp/src/builtins/System/Reflection/index.ts @@ -5,7 +5,7 @@ import System from "../index.js"; import Security from "../Security/index.js"; import { createLibrary } from "#createLibrary"; -import { LibrarySymbolReference } from "@alloy-js/core";export { default as Emit } from "./Emit/index.js"; +import type { LibrarySymbolReference } from "@alloy-js/core";export { default as Emit } from "./Emit/index.js"; export { default as Metadata } from "./Metadata/index.js"; export { default as PortableExecutable } from "./PortableExecutable/index.js"; diff --git a/packages/csharp/src/builtins/System/Resources/index.ts b/packages/csharp/src/builtins/System/Resources/index.ts index 26ffeedfe..151254551 100644 --- a/packages/csharp/src/builtins/System/Resources/index.ts +++ b/packages/csharp/src/builtins/System/Resources/index.ts @@ -2,7 +2,7 @@ import System from "../index.js"; import Reflection from "../Reflection/index.js"; import { createLibrary } from "#createLibrary"; -import { LibrarySymbolReference } from "@alloy-js/core"; +import type { LibrarySymbolReference } from "@alloy-js/core"; type ResourcesLibrary = LibrarySymbolReference & { IResourceReader: LibrarySymbolReference & { diff --git a/packages/csharp/src/builtins/System/Runtime/CompilerServices/index.ts b/packages/csharp/src/builtins/System/Runtime/CompilerServices/index.ts index 6e824b92f..8dc84ec2f 100644 --- a/packages/csharp/src/builtins/System/Runtime/CompilerServices/index.ts +++ b/packages/csharp/src/builtins/System/Runtime/CompilerServices/index.ts @@ -4,7 +4,7 @@ import Expressions from "../../Linq/Expressions/index.js"; import Tasks from "../../Threading/Tasks/index.js"; import { createLibrary } from "#createLibrary"; -import { LibrarySymbolReference } from "@alloy-js/core"; +import type { LibrarySymbolReference } from "@alloy-js/core"; type CompilerServicesLibrary = LibrarySymbolReference & { AccessedThroughPropertyAttribute: LibrarySymbolReference & { diff --git a/packages/csharp/src/builtins/System/Runtime/ConstrainedExecution/index.ts b/packages/csharp/src/builtins/System/Runtime/ConstrainedExecution/index.ts index 565ff7f21..df4639bce 100644 --- a/packages/csharp/src/builtins/System/Runtime/ConstrainedExecution/index.ts +++ b/packages/csharp/src/builtins/System/Runtime/ConstrainedExecution/index.ts @@ -1,5 +1,5 @@ import { createLibrary } from "#createLibrary"; -import { LibrarySymbolReference } from "@alloy-js/core"; +import type { LibrarySymbolReference } from "@alloy-js/core"; type ConstrainedExecutionLibrary = LibrarySymbolReference & { Cer: LibrarySymbolReference & { diff --git a/packages/csharp/src/builtins/System/Runtime/ExceptionServices/index.ts b/packages/csharp/src/builtins/System/Runtime/ExceptionServices/index.ts index 42126ac69..8ced27da3 100644 --- a/packages/csharp/src/builtins/System/Runtime/ExceptionServices/index.ts +++ b/packages/csharp/src/builtins/System/Runtime/ExceptionServices/index.ts @@ -1,7 +1,7 @@ import System from "../../index.js"; import { createLibrary } from "#createLibrary"; -import { LibrarySymbolReference } from "@alloy-js/core"; +import type { LibrarySymbolReference } from "@alloy-js/core"; type ExceptionServicesLibrary = LibrarySymbolReference & { ExceptionDispatchInfo: LibrarySymbolReference & { diff --git a/packages/csharp/src/builtins/System/Runtime/InteropServices/ComTypes/index.ts b/packages/csharp/src/builtins/System/Runtime/InteropServices/ComTypes/index.ts index 88f665beb..8656219fb 100644 --- a/packages/csharp/src/builtins/System/Runtime/InteropServices/ComTypes/index.ts +++ b/packages/csharp/src/builtins/System/Runtime/InteropServices/ComTypes/index.ts @@ -1,5 +1,5 @@ import { createLibrary } from "#createLibrary"; -import { LibrarySymbolReference } from "@alloy-js/core"; +import type { LibrarySymbolReference } from "@alloy-js/core"; type ComTypesLibrary = LibrarySymbolReference & { IDataObject: LibrarySymbolReference & { diff --git a/packages/csharp/src/builtins/System/Runtime/InteropServices/JavaScript/index.ts b/packages/csharp/src/builtins/System/Runtime/InteropServices/JavaScript/index.ts index 691b20640..6124fc97f 100644 --- a/packages/csharp/src/builtins/System/Runtime/InteropServices/JavaScript/index.ts +++ b/packages/csharp/src/builtins/System/Runtime/InteropServices/JavaScript/index.ts @@ -1,7 +1,7 @@ import System from "../../../index.js"; import { createLibrary } from "#createLibrary"; -import { LibrarySymbolReference } from "@alloy-js/core"; +import type { LibrarySymbolReference } from "@alloy-js/core"; type JavaScriptLibrary = LibrarySymbolReference & { JSException: LibrarySymbolReference & { diff --git a/packages/csharp/src/builtins/System/Runtime/InteropServices/Marshalling/index.ts b/packages/csharp/src/builtins/System/Runtime/InteropServices/Marshalling/index.ts index ca7aa7974..cc00842ec 100644 --- a/packages/csharp/src/builtins/System/Runtime/InteropServices/Marshalling/index.ts +++ b/packages/csharp/src/builtins/System/Runtime/InteropServices/Marshalling/index.ts @@ -2,7 +2,7 @@ import System from "../../../index.js"; import InteropServices from "../index.js"; import { createLibrary } from "#createLibrary"; -import { LibrarySymbolReference } from "@alloy-js/core"; +import type { LibrarySymbolReference } from "@alloy-js/core"; type MarshallingLibrary = LibrarySymbolReference & { AnsiStringMarshaller: LibrarySymbolReference & { diff --git a/packages/csharp/src/builtins/System/Runtime/InteropServices/ObjectiveC/index.ts b/packages/csharp/src/builtins/System/Runtime/InteropServices/ObjectiveC/index.ts index 0308b7067..d221edf42 100644 --- a/packages/csharp/src/builtins/System/Runtime/InteropServices/ObjectiveC/index.ts +++ b/packages/csharp/src/builtins/System/Runtime/InteropServices/ObjectiveC/index.ts @@ -1,5 +1,5 @@ import { createLibrary } from "#createLibrary"; -import { LibrarySymbolReference } from "@alloy-js/core"; +import type { LibrarySymbolReference } from "@alloy-js/core"; type ObjectiveCLibrary = LibrarySymbolReference & { ObjectiveCMarshal: LibrarySymbolReference & { diff --git a/packages/csharp/src/builtins/System/Runtime/InteropServices/Swift/index.ts b/packages/csharp/src/builtins/System/Runtime/InteropServices/Swift/index.ts index ed6d14aa1..1257f4a15 100644 --- a/packages/csharp/src/builtins/System/Runtime/InteropServices/Swift/index.ts +++ b/packages/csharp/src/builtins/System/Runtime/InteropServices/Swift/index.ts @@ -1,7 +1,7 @@ import System from "../../../index.js"; import { createLibrary } from "#createLibrary"; -import { LibrarySymbolReference } from "@alloy-js/core"; +import type { LibrarySymbolReference } from "@alloy-js/core"; type SwiftLibrary = LibrarySymbolReference & { SwiftError: LibrarySymbolReference & { diff --git a/packages/csharp/src/builtins/System/Runtime/InteropServices/index.ts b/packages/csharp/src/builtins/System/Runtime/InteropServices/index.ts index fd90eb6ce..3a13df371 100644 --- a/packages/csharp/src/builtins/System/Runtime/InteropServices/index.ts +++ b/packages/csharp/src/builtins/System/Runtime/InteropServices/index.ts @@ -1,7 +1,7 @@ import System from "../../index.js"; import { createLibrary } from "#createLibrary"; -import { LibrarySymbolReference } from "@alloy-js/core";export { default as ComTypes } from "./ComTypes/index.js"; +import type { LibrarySymbolReference } from "@alloy-js/core";export { default as ComTypes } from "./ComTypes/index.js"; export { default as JavaScript } from "./JavaScript/index.js"; export { default as Marshalling } from "./Marshalling/index.js"; export { default as ObjectiveC } from "./ObjectiveC/index.js"; diff --git a/packages/csharp/src/builtins/System/Runtime/Intrinsics/Arm/index.ts b/packages/csharp/src/builtins/System/Runtime/Intrinsics/Arm/index.ts index bb6e1c17f..95a34e3c1 100644 --- a/packages/csharp/src/builtins/System/Runtime/Intrinsics/Arm/index.ts +++ b/packages/csharp/src/builtins/System/Runtime/Intrinsics/Arm/index.ts @@ -1,7 +1,7 @@ import System from "../../../index.js"; import { createLibrary } from "#createLibrary"; -import { LibrarySymbolReference } from "@alloy-js/core"; +import type { LibrarySymbolReference } from "@alloy-js/core"; type ArmLibrary = LibrarySymbolReference & { AdvSimd: LibrarySymbolReference & { diff --git a/packages/csharp/src/builtins/System/Runtime/Intrinsics/Wasm/index.ts b/packages/csharp/src/builtins/System/Runtime/Intrinsics/Wasm/index.ts index 7d4db8bd4..a02858378 100644 --- a/packages/csharp/src/builtins/System/Runtime/Intrinsics/Wasm/index.ts +++ b/packages/csharp/src/builtins/System/Runtime/Intrinsics/Wasm/index.ts @@ -1,7 +1,7 @@ import System from "../../../index.js"; import { createLibrary } from "#createLibrary"; -import { LibrarySymbolReference } from "@alloy-js/core"; +import type { LibrarySymbolReference } from "@alloy-js/core"; type WasmLibrary = LibrarySymbolReference & { PackedSimd: LibrarySymbolReference & { diff --git a/packages/csharp/src/builtins/System/Runtime/Intrinsics/X86/index.ts b/packages/csharp/src/builtins/System/Runtime/Intrinsics/X86/index.ts index 2ea583b4b..272ef1b81 100644 --- a/packages/csharp/src/builtins/System/Runtime/Intrinsics/X86/index.ts +++ b/packages/csharp/src/builtins/System/Runtime/Intrinsics/X86/index.ts @@ -1,7 +1,7 @@ import System from "../../../index.js"; import { createLibrary } from "#createLibrary"; -import { LibrarySymbolReference } from "@alloy-js/core"; +import type { LibrarySymbolReference } from "@alloy-js/core"; type X86Library = LibrarySymbolReference & { Aes: LibrarySymbolReference & { diff --git a/packages/csharp/src/builtins/System/Runtime/Intrinsics/index.ts b/packages/csharp/src/builtins/System/Runtime/Intrinsics/index.ts index e03db79b5..4450289d4 100644 --- a/packages/csharp/src/builtins/System/Runtime/Intrinsics/index.ts +++ b/packages/csharp/src/builtins/System/Runtime/Intrinsics/index.ts @@ -1,7 +1,7 @@ import System from "../../index.js"; import { createLibrary } from "#createLibrary"; -import { LibrarySymbolReference } from "@alloy-js/core";export { default as Arm } from "./Arm/index.js"; +import type { LibrarySymbolReference } from "@alloy-js/core";export { default as Arm } from "./Arm/index.js"; export { default as Wasm } from "./Wasm/index.js"; export { default as X86 } from "./X86/index.js"; diff --git a/packages/csharp/src/builtins/System/Runtime/Loader/index.ts b/packages/csharp/src/builtins/System/Runtime/Loader/index.ts index be9210d1a..465c7eb2f 100644 --- a/packages/csharp/src/builtins/System/Runtime/Loader/index.ts +++ b/packages/csharp/src/builtins/System/Runtime/Loader/index.ts @@ -2,7 +2,7 @@ import Generic from "../../Collections/Generic/index.js"; import System from "../../index.js"; import { createLibrary } from "#createLibrary"; -import { LibrarySymbolReference } from "@alloy-js/core"; +import type { LibrarySymbolReference } from "@alloy-js/core"; type LoaderLibrary = LibrarySymbolReference & { AssemblyDependencyResolver: LibrarySymbolReference & { diff --git a/packages/csharp/src/builtins/System/Runtime/Remoting/index.ts b/packages/csharp/src/builtins/System/Runtime/Remoting/index.ts index 425446b79..03c6b0e02 100644 --- a/packages/csharp/src/builtins/System/Runtime/Remoting/index.ts +++ b/packages/csharp/src/builtins/System/Runtime/Remoting/index.ts @@ -1,5 +1,5 @@ import { createLibrary } from "#createLibrary"; -import { LibrarySymbolReference } from "@alloy-js/core"; +import type { LibrarySymbolReference } from "@alloy-js/core"; type RemotingLibrary = LibrarySymbolReference & { ObjectHandle: LibrarySymbolReference & { diff --git a/packages/csharp/src/builtins/System/Runtime/Serialization/DataContracts/index.ts b/packages/csharp/src/builtins/System/Runtime/Serialization/DataContracts/index.ts index 7279e8899..eb1d46970 100644 --- a/packages/csharp/src/builtins/System/Runtime/Serialization/DataContracts/index.ts +++ b/packages/csharp/src/builtins/System/Runtime/Serialization/DataContracts/index.ts @@ -6,7 +6,7 @@ import Xml from "../../../Xml/index.js"; import Schema from "../../../Xml/Schema/index.js"; import { createLibrary } from "#createLibrary"; -import { LibrarySymbolReference } from "@alloy-js/core"; +import type { LibrarySymbolReference } from "@alloy-js/core"; type DataContractsLibrary = LibrarySymbolReference & { DataContract: LibrarySymbolReference & { diff --git a/packages/csharp/src/builtins/System/Runtime/Serialization/Formatters/Binary/index.ts b/packages/csharp/src/builtins/System/Runtime/Serialization/Formatters/Binary/index.ts index 19a0cc16b..e56328e02 100644 --- a/packages/csharp/src/builtins/System/Runtime/Serialization/Formatters/Binary/index.ts +++ b/packages/csharp/src/builtins/System/Runtime/Serialization/Formatters/Binary/index.ts @@ -2,7 +2,7 @@ import Formatters from "../index.js"; import Serialization from "../../index.js"; import { createLibrary } from "#createLibrary"; -import { LibrarySymbolReference } from "@alloy-js/core"; +import type { LibrarySymbolReference } from "@alloy-js/core"; type BinaryLibrary = LibrarySymbolReference & { BinaryFormatter: LibrarySymbolReference & { diff --git a/packages/csharp/src/builtins/System/Runtime/Serialization/Formatters/index.ts b/packages/csharp/src/builtins/System/Runtime/Serialization/Formatters/index.ts index fe4644bd2..2e49e9d9e 100644 --- a/packages/csharp/src/builtins/System/Runtime/Serialization/Formatters/index.ts +++ b/packages/csharp/src/builtins/System/Runtime/Serialization/Formatters/index.ts @@ -1,7 +1,7 @@ import System from "../../../index.js"; import { createLibrary } from "#createLibrary"; -import { LibrarySymbolReference } from "@alloy-js/core";export { default as Binary } from "./Binary/index.js"; +import type { LibrarySymbolReference } from "@alloy-js/core";export { default as Binary } from "./Binary/index.js"; type FormattersLibrary = LibrarySymbolReference & { FormatterAssemblyStyle: LibrarySymbolReference & { diff --git a/packages/csharp/src/builtins/System/Runtime/Serialization/Json/index.ts b/packages/csharp/src/builtins/System/Runtime/Serialization/Json/index.ts index 60d02c405..f74d4e788 100644 --- a/packages/csharp/src/builtins/System/Runtime/Serialization/Json/index.ts +++ b/packages/csharp/src/builtins/System/Runtime/Serialization/Json/index.ts @@ -4,7 +4,7 @@ import System from "../../../index.js"; import Serialization from "../index.js"; import { createLibrary } from "#createLibrary"; -import { LibrarySymbolReference } from "@alloy-js/core"; +import type { LibrarySymbolReference } from "@alloy-js/core"; type JsonLibrary = LibrarySymbolReference & { DataContractJsonSerializer: LibrarySymbolReference & { diff --git a/packages/csharp/src/builtins/System/Runtime/Serialization/index.ts b/packages/csharp/src/builtins/System/Runtime/Serialization/index.ts index 1f3a3a5bf..825fb26b6 100644 --- a/packages/csharp/src/builtins/System/Runtime/Serialization/index.ts +++ b/packages/csharp/src/builtins/System/Runtime/Serialization/index.ts @@ -6,7 +6,7 @@ import Xml from "../../Xml/index.js"; import Schema from "../../Xml/Schema/index.js"; import { createLibrary } from "#createLibrary"; -import { LibrarySymbolReference } from "@alloy-js/core";export { default as DataContracts } from "./DataContracts/index.js"; +import type { LibrarySymbolReference } from "@alloy-js/core";export { default as DataContracts } from "./DataContracts/index.js"; export { default as Formatters } from "./Formatters/index.js"; export { default as Json } from "./Json/index.js"; diff --git a/packages/csharp/src/builtins/System/Runtime/Versioning/index.ts b/packages/csharp/src/builtins/System/Runtime/Versioning/index.ts index 0b900546c..ef52dd505 100644 --- a/packages/csharp/src/builtins/System/Runtime/Versioning/index.ts +++ b/packages/csharp/src/builtins/System/Runtime/Versioning/index.ts @@ -1,7 +1,7 @@ import System from "../../index.js"; import { createLibrary } from "#createLibrary"; -import { LibrarySymbolReference } from "@alloy-js/core"; +import type { LibrarySymbolReference } from "@alloy-js/core"; type VersioningLibrary = LibrarySymbolReference & { ComponentGuaranteesAttribute: LibrarySymbolReference & { diff --git a/packages/csharp/src/builtins/System/Runtime/index.ts b/packages/csharp/src/builtins/System/Runtime/index.ts index edd395e6e..8b71430fe 100644 --- a/packages/csharp/src/builtins/System/Runtime/index.ts +++ b/packages/csharp/src/builtins/System/Runtime/index.ts @@ -1,7 +1,7 @@ import System from "../index.js"; import { createLibrary } from "#createLibrary"; -import { LibrarySymbolReference } from "@alloy-js/core";export { default as CompilerServices } from "./CompilerServices/index.js"; +import type { LibrarySymbolReference } from "@alloy-js/core";export { default as CompilerServices } from "./CompilerServices/index.js"; export { default as ConstrainedExecution } from "./ConstrainedExecution/index.js"; export { default as ExceptionServices } from "./ExceptionServices/index.js"; export { default as InteropServices } from "./InteropServices/index.js"; diff --git a/packages/csharp/src/builtins/System/Security/AccessControl/index.ts b/packages/csharp/src/builtins/System/Security/AccessControl/index.ts index 544a152b4..4ef763e15 100644 --- a/packages/csharp/src/builtins/System/Security/AccessControl/index.ts +++ b/packages/csharp/src/builtins/System/Security/AccessControl/index.ts @@ -2,7 +2,7 @@ import System from "../../index.js"; import Principal from "../Principal/index.js"; import { createLibrary } from "#createLibrary"; -import { LibrarySymbolReference } from "@alloy-js/core"; +import type { LibrarySymbolReference } from "@alloy-js/core"; type AccessControlLibrary = LibrarySymbolReference & { AccessControlActions: LibrarySymbolReference & { diff --git a/packages/csharp/src/builtins/System/Security/Authentication/ExtendedProtection/index.ts b/packages/csharp/src/builtins/System/Security/Authentication/ExtendedProtection/index.ts index 3beba60eb..2cf9c8346 100644 --- a/packages/csharp/src/builtins/System/Security/Authentication/ExtendedProtection/index.ts +++ b/packages/csharp/src/builtins/System/Security/Authentication/ExtendedProtection/index.ts @@ -1,7 +1,7 @@ import System from "../../../index.js"; import { createLibrary } from "#createLibrary"; -import { LibrarySymbolReference } from "@alloy-js/core"; +import type { LibrarySymbolReference } from "@alloy-js/core"; type ExtendedProtectionLibrary = LibrarySymbolReference & { ChannelBinding: LibrarySymbolReference & { diff --git a/packages/csharp/src/builtins/System/Security/Authentication/index.ts b/packages/csharp/src/builtins/System/Security/Authentication/index.ts index 4d0b41382..7bede522f 100644 --- a/packages/csharp/src/builtins/System/Security/Authentication/index.ts +++ b/packages/csharp/src/builtins/System/Security/Authentication/index.ts @@ -1,5 +1,5 @@ import { createLibrary } from "#createLibrary"; -import { LibrarySymbolReference } from "@alloy-js/core";export { default as ExtendedProtection } from "./ExtendedProtection/index.js"; +import type { LibrarySymbolReference } from "@alloy-js/core";export { default as ExtendedProtection } from "./ExtendedProtection/index.js"; type AuthenticationLibrary = LibrarySymbolReference & { AuthenticationException: LibrarySymbolReference & { diff --git a/packages/csharp/src/builtins/System/Security/Claims/index.ts b/packages/csharp/src/builtins/System/Security/Claims/index.ts index f63f35afd..b208ddbbf 100644 --- a/packages/csharp/src/builtins/System/Security/Claims/index.ts +++ b/packages/csharp/src/builtins/System/Security/Claims/index.ts @@ -3,7 +3,7 @@ import System from "../../index.js"; import Principal from "../Principal/index.js"; import { createLibrary } from "#createLibrary"; -import { LibrarySymbolReference } from "@alloy-js/core"; +import type { LibrarySymbolReference } from "@alloy-js/core"; type ClaimsLibrary = LibrarySymbolReference & { Claim: LibrarySymbolReference & { diff --git a/packages/csharp/src/builtins/System/Security/Cryptography/X509Certificates/index.ts b/packages/csharp/src/builtins/System/Security/Cryptography/X509Certificates/index.ts index 57d77cda8..f920fb84b 100644 --- a/packages/csharp/src/builtins/System/Security/Cryptography/X509Certificates/index.ts +++ b/packages/csharp/src/builtins/System/Security/Cryptography/X509Certificates/index.ts @@ -4,7 +4,7 @@ import System from "../../../index.js"; import Cryptography from "../index.js"; import { createLibrary } from "#createLibrary"; -import { LibrarySymbolReference } from "@alloy-js/core"; +import type { LibrarySymbolReference } from "@alloy-js/core"; type X509CertificatesLibrary = LibrarySymbolReference & { CertificateRequest: LibrarySymbolReference & { diff --git a/packages/csharp/src/builtins/System/Security/Cryptography/index.ts b/packages/csharp/src/builtins/System/Security/Cryptography/index.ts index 3be4e8985..ee09cc39a 100644 --- a/packages/csharp/src/builtins/System/Security/Cryptography/index.ts +++ b/packages/csharp/src/builtins/System/Security/Cryptography/index.ts @@ -3,7 +3,7 @@ import System from "../../index.js"; import Security from "../index.js"; import { createLibrary } from "#createLibrary"; -import { LibrarySymbolReference } from "@alloy-js/core";export { default as X509Certificates } from "./X509Certificates/index.js"; +import type { LibrarySymbolReference } from "@alloy-js/core";export { default as X509Certificates } from "./X509Certificates/index.js"; type CryptographyLibrary = LibrarySymbolReference & { Aes: LibrarySymbolReference & { diff --git a/packages/csharp/src/builtins/System/Security/Permissions/index.ts b/packages/csharp/src/builtins/System/Security/Permissions/index.ts index b15be3632..15af164dc 100644 --- a/packages/csharp/src/builtins/System/Security/Permissions/index.ts +++ b/packages/csharp/src/builtins/System/Security/Permissions/index.ts @@ -1,7 +1,7 @@ import System from "../../index.js"; import { createLibrary } from "#createLibrary"; -import { LibrarySymbolReference } from "@alloy-js/core"; +import type { LibrarySymbolReference } from "@alloy-js/core"; type PermissionsLibrary = LibrarySymbolReference & { CodeAccessSecurityAttribute: LibrarySymbolReference & { diff --git a/packages/csharp/src/builtins/System/Security/Policy/index.ts b/packages/csharp/src/builtins/System/Security/Policy/index.ts index b6f292e56..f96b3bb28 100644 --- a/packages/csharp/src/builtins/System/Security/Policy/index.ts +++ b/packages/csharp/src/builtins/System/Security/Policy/index.ts @@ -1,7 +1,7 @@ import System from "../../index.js"; import { createLibrary } from "#createLibrary"; -import { LibrarySymbolReference } from "@alloy-js/core"; +import type { LibrarySymbolReference } from "@alloy-js/core"; type PolicyLibrary = LibrarySymbolReference & { Evidence: LibrarySymbolReference & { diff --git a/packages/csharp/src/builtins/System/Security/Principal/index.ts b/packages/csharp/src/builtins/System/Security/Principal/index.ts index 4dfad8ad8..56c9d3ed8 100644 --- a/packages/csharp/src/builtins/System/Security/Principal/index.ts +++ b/packages/csharp/src/builtins/System/Security/Principal/index.ts @@ -3,7 +3,7 @@ import Generic from "../../Collections/Generic/index.js"; import System from "../../index.js"; import { createLibrary } from "#createLibrary"; -import { LibrarySymbolReference } from "@alloy-js/core"; +import type { LibrarySymbolReference } from "@alloy-js/core"; type PrincipalLibrary = LibrarySymbolReference & { GenericIdentity: LibrarySymbolReference & { diff --git a/packages/csharp/src/builtins/System/Security/index.ts b/packages/csharp/src/builtins/System/Security/index.ts index 808e2cfa4..e44ed5fe0 100644 --- a/packages/csharp/src/builtins/System/Security/index.ts +++ b/packages/csharp/src/builtins/System/Security/index.ts @@ -3,7 +3,7 @@ import System from "../index.js"; import Reflection from "../Reflection/index.js"; import { createLibrary } from "#createLibrary"; -import { LibrarySymbolReference } from "@alloy-js/core";export { default as AccessControl } from "./AccessControl/index.js"; +import type { LibrarySymbolReference } from "@alloy-js/core";export { default as AccessControl } from "./AccessControl/index.js"; export { default as Authentication } from "./Authentication/index.js"; export { default as Claims } from "./Claims/index.js"; export { default as Cryptography } from "./Cryptography/index.js"; diff --git a/packages/csharp/src/builtins/System/Text/Encodings/Web/index.ts b/packages/csharp/src/builtins/System/Text/Encodings/Web/index.ts index 5a2546e2f..935f1cc45 100644 --- a/packages/csharp/src/builtins/System/Text/Encodings/Web/index.ts +++ b/packages/csharp/src/builtins/System/Text/Encodings/Web/index.ts @@ -1,5 +1,5 @@ import { createLibrary } from "#createLibrary"; -import { LibrarySymbolReference } from "@alloy-js/core"; +import type { LibrarySymbolReference } from "@alloy-js/core"; type WebLibrary = LibrarySymbolReference & { HtmlEncoder: LibrarySymbolReference & { diff --git a/packages/csharp/src/builtins/System/Text/Encodings/index.ts b/packages/csharp/src/builtins/System/Text/Encodings/index.ts index 681f050c7..979ecc553 100644 --- a/packages/csharp/src/builtins/System/Text/Encodings/index.ts +++ b/packages/csharp/src/builtins/System/Text/Encodings/index.ts @@ -1,5 +1,5 @@ import { createLibrary } from "#createLibrary"; -import { LibrarySymbolReference } from "@alloy-js/core";export { default as Web } from "./Web/index.js"; +import type { LibrarySymbolReference } from "@alloy-js/core";export { default as Web } from "./Web/index.js"; type EncodingsLibrary = LibrarySymbolReference & { diff --git a/packages/csharp/src/builtins/System/Text/Json/Nodes/index.ts b/packages/csharp/src/builtins/System/Text/Json/Nodes/index.ts index ae5441001..bc687968a 100644 --- a/packages/csharp/src/builtins/System/Text/Json/Nodes/index.ts +++ b/packages/csharp/src/builtins/System/Text/Json/Nodes/index.ts @@ -1,7 +1,7 @@ import System from "../../../index.js"; import { createLibrary } from "#createLibrary"; -import { LibrarySymbolReference } from "@alloy-js/core"; +import type { LibrarySymbolReference } from "@alloy-js/core"; type NodesLibrary = LibrarySymbolReference & { JsonArray: LibrarySymbolReference & { diff --git a/packages/csharp/src/builtins/System/Text/Json/Schema/index.ts b/packages/csharp/src/builtins/System/Text/Json/Schema/index.ts index 02dc1bb86..c3a749c39 100644 --- a/packages/csharp/src/builtins/System/Text/Json/Schema/index.ts +++ b/packages/csharp/src/builtins/System/Text/Json/Schema/index.ts @@ -2,7 +2,7 @@ import System from "../../../index.js"; import Metadata from "../Serialization/Metadata/index.js"; import { createLibrary } from "#createLibrary"; -import { LibrarySymbolReference } from "@alloy-js/core"; +import type { LibrarySymbolReference } from "@alloy-js/core"; type SchemaLibrary = LibrarySymbolReference & { JsonSchemaExporter: LibrarySymbolReference & { diff --git a/packages/csharp/src/builtins/System/Text/Json/Serialization/Metadata/index.ts b/packages/csharp/src/builtins/System/Text/Json/Serialization/Metadata/index.ts index b764a9ace..a69020d02 100644 --- a/packages/csharp/src/builtins/System/Text/Json/Serialization/Metadata/index.ts +++ b/packages/csharp/src/builtins/System/Text/Json/Serialization/Metadata/index.ts @@ -5,7 +5,7 @@ import Json from "../../index.js"; import Serialization from "../index.js"; import { createLibrary } from "#createLibrary"; -import { LibrarySymbolReference } from "@alloy-js/core"; +import type { LibrarySymbolReference } from "@alloy-js/core"; type MetadataLibrary = LibrarySymbolReference & { DefaultJsonTypeInfoResolver: LibrarySymbolReference & { diff --git a/packages/csharp/src/builtins/System/Text/Json/Serialization/index.ts b/packages/csharp/src/builtins/System/Text/Json/Serialization/index.ts index 3ea2293f2..8a67ebe10 100644 --- a/packages/csharp/src/builtins/System/Text/Json/Serialization/index.ts +++ b/packages/csharp/src/builtins/System/Text/Json/Serialization/index.ts @@ -2,7 +2,7 @@ import System from "../../../index.js"; import Json from "../index.js"; import { createLibrary } from "#createLibrary"; -import { LibrarySymbolReference } from "@alloy-js/core";export { default as Metadata } from "./Metadata/index.js"; +import type { LibrarySymbolReference } from "@alloy-js/core";export { default as Metadata } from "./Metadata/index.js"; type SerializationLibrary = LibrarySymbolReference & { IJsonOnDeserialized: LibrarySymbolReference & { diff --git a/packages/csharp/src/builtins/System/Text/Json/index.ts b/packages/csharp/src/builtins/System/Text/Json/index.ts index 55f7de348..c3526d71e 100644 --- a/packages/csharp/src/builtins/System/Text/Json/index.ts +++ b/packages/csharp/src/builtins/System/Text/Json/index.ts @@ -6,7 +6,7 @@ import Serialization from "./Serialization/index.js"; import Metadata from "./Serialization/Metadata/index.js"; import { createLibrary } from "#createLibrary"; -import { LibrarySymbolReference } from "@alloy-js/core";export { default as Nodes } from "./Nodes/index.js"; +import type { LibrarySymbolReference } from "@alloy-js/core";export { default as Nodes } from "./Nodes/index.js"; export { default as Schema } from "./Schema/index.js"; export { default as Serialization } from "./Serialization/index.js"; diff --git a/packages/csharp/src/builtins/System/Text/RegularExpressions/index.ts b/packages/csharp/src/builtins/System/Text/RegularExpressions/index.ts index 25568d1cd..bab884923 100644 --- a/packages/csharp/src/builtins/System/Text/RegularExpressions/index.ts +++ b/packages/csharp/src/builtins/System/Text/RegularExpressions/index.ts @@ -2,7 +2,7 @@ import Generic from "../../Collections/Generic/index.js"; import System from "../../index.js"; import { createLibrary } from "#createLibrary"; -import { LibrarySymbolReference } from "@alloy-js/core"; +import type { LibrarySymbolReference } from "@alloy-js/core"; type RegularExpressionsLibrary = LibrarySymbolReference & { Capture: LibrarySymbolReference & { diff --git a/packages/csharp/src/builtins/System/Text/Unicode/index.ts b/packages/csharp/src/builtins/System/Text/Unicode/index.ts index 4eda56671..6c18be99f 100644 --- a/packages/csharp/src/builtins/System/Text/Unicode/index.ts +++ b/packages/csharp/src/builtins/System/Text/Unicode/index.ts @@ -1,7 +1,7 @@ import System from "../../index.js"; import { createLibrary } from "#createLibrary"; -import { LibrarySymbolReference } from "@alloy-js/core"; +import type { LibrarySymbolReference } from "@alloy-js/core"; type UnicodeLibrary = LibrarySymbolReference & { UnicodeRange: LibrarySymbolReference & { diff --git a/packages/csharp/src/builtins/System/Text/index.ts b/packages/csharp/src/builtins/System/Text/index.ts index bfe991174..c79e34677 100644 --- a/packages/csharp/src/builtins/System/Text/index.ts +++ b/packages/csharp/src/builtins/System/Text/index.ts @@ -1,7 +1,7 @@ import System from "../index.js"; import { createLibrary } from "#createLibrary"; -import { LibrarySymbolReference } from "@alloy-js/core";export { default as Encodings } from "./Encodings/index.js"; +import type { LibrarySymbolReference } from "@alloy-js/core";export { default as Encodings } from "./Encodings/index.js"; export { default as Json } from "./Json/index.js"; export { default as RegularExpressions } from "./RegularExpressions/index.js"; export { default as Unicode } from "./Unicode/index.js"; diff --git a/packages/csharp/src/builtins/System/Threading/Channels/index.ts b/packages/csharp/src/builtins/System/Threading/Channels/index.ts index 6fa6a4aed..3149114b5 100644 --- a/packages/csharp/src/builtins/System/Threading/Channels/index.ts +++ b/packages/csharp/src/builtins/System/Threading/Channels/index.ts @@ -3,7 +3,7 @@ import System from "../../index.js"; import Tasks from "../Tasks/index.js"; import { createLibrary } from "#createLibrary"; -import { LibrarySymbolReference } from "@alloy-js/core"; +import type { LibrarySymbolReference } from "@alloy-js/core"; type ChannelsLibrary = LibrarySymbolReference & { BoundedChannelFullMode: LibrarySymbolReference & { diff --git a/packages/csharp/src/builtins/System/Threading/Tasks/Dataflow/index.ts b/packages/csharp/src/builtins/System/Threading/Tasks/Dataflow/index.ts index 9eb7105c8..c8d4a3b10 100644 --- a/packages/csharp/src/builtins/System/Threading/Tasks/Dataflow/index.ts +++ b/packages/csharp/src/builtins/System/Threading/Tasks/Dataflow/index.ts @@ -3,7 +3,7 @@ import Threading from "../../index.js"; import Tasks from "../index.js"; import { createLibrary } from "#createLibrary"; -import { LibrarySymbolReference } from "@alloy-js/core"; +import type { LibrarySymbolReference } from "@alloy-js/core"; type DataflowLibrary = LibrarySymbolReference & { ActionBlock: LibrarySymbolReference & { diff --git a/packages/csharp/src/builtins/System/Threading/Tasks/Sources/index.ts b/packages/csharp/src/builtins/System/Threading/Tasks/Sources/index.ts index 0df374129..ccdb7cdc3 100644 --- a/packages/csharp/src/builtins/System/Threading/Tasks/Sources/index.ts +++ b/packages/csharp/src/builtins/System/Threading/Tasks/Sources/index.ts @@ -1,7 +1,7 @@ import System from "../../../index.js"; import { createLibrary } from "#createLibrary"; -import { LibrarySymbolReference } from "@alloy-js/core"; +import type { LibrarySymbolReference } from "@alloy-js/core"; type SourcesLibrary = LibrarySymbolReference & { IValueTaskSource: LibrarySymbolReference & { diff --git a/packages/csharp/src/builtins/System/Threading/Tasks/index.ts b/packages/csharp/src/builtins/System/Threading/Tasks/index.ts index 500abe63f..79e3edb92 100644 --- a/packages/csharp/src/builtins/System/Threading/Tasks/index.ts +++ b/packages/csharp/src/builtins/System/Threading/Tasks/index.ts @@ -2,7 +2,7 @@ import System from "../../index.js"; import Threading from "../index.js"; import { createLibrary } from "#createLibrary"; -import { LibrarySymbolReference } from "@alloy-js/core";export { default as Dataflow } from "./Dataflow/index.js"; +import type { LibrarySymbolReference } from "@alloy-js/core";export { default as Dataflow } from "./Dataflow/index.js"; export { default as Sources } from "./Sources/index.js"; type TasksLibrary = LibrarySymbolReference & { diff --git a/packages/csharp/src/builtins/System/Threading/index.ts b/packages/csharp/src/builtins/System/Threading/index.ts index 2f5f56e02..dc9368ae2 100644 --- a/packages/csharp/src/builtins/System/Threading/index.ts +++ b/packages/csharp/src/builtins/System/Threading/index.ts @@ -6,7 +6,7 @@ import InteropServices from "../Runtime/InteropServices/index.js"; import Principal from "../Security/Principal/index.js"; import { createLibrary } from "#createLibrary"; -import { LibrarySymbolReference } from "@alloy-js/core";export { default as Channels } from "./Channels/index.js"; +import type { LibrarySymbolReference } from "@alloy-js/core";export { default as Channels } from "./Channels/index.js"; export { default as Tasks } from "./Tasks/index.js"; type ThreadingLibrary = LibrarySymbolReference & { diff --git a/packages/csharp/src/builtins/System/Timers/index.ts b/packages/csharp/src/builtins/System/Timers/index.ts index f372f1373..3d4b5f25c 100644 --- a/packages/csharp/src/builtins/System/Timers/index.ts +++ b/packages/csharp/src/builtins/System/Timers/index.ts @@ -2,7 +2,7 @@ import ComponentModel from "../ComponentModel/index.js"; import System from "../index.js"; import { createLibrary } from "#createLibrary"; -import { LibrarySymbolReference } from "@alloy-js/core"; +import type { LibrarySymbolReference } from "@alloy-js/core"; type TimersLibrary = LibrarySymbolReference & { ElapsedEventArgs: LibrarySymbolReference & { diff --git a/packages/csharp/src/builtins/System/Transactions/index.ts b/packages/csharp/src/builtins/System/Transactions/index.ts index 0e1e32ef5..44998c99b 100644 --- a/packages/csharp/src/builtins/System/Transactions/index.ts +++ b/packages/csharp/src/builtins/System/Transactions/index.ts @@ -1,7 +1,7 @@ import System from "../index.js"; import { createLibrary } from "#createLibrary"; -import { LibrarySymbolReference } from "@alloy-js/core"; +import type { LibrarySymbolReference } from "@alloy-js/core"; type TransactionsLibrary = LibrarySymbolReference & { CommittableTransaction: LibrarySymbolReference & { diff --git a/packages/csharp/src/builtins/System/Web/index.ts b/packages/csharp/src/builtins/System/Web/index.ts index b5cea43e5..9146bc85c 100644 --- a/packages/csharp/src/builtins/System/Web/index.ts +++ b/packages/csharp/src/builtins/System/Web/index.ts @@ -1,5 +1,5 @@ import { createLibrary } from "#createLibrary"; -import { LibrarySymbolReference } from "@alloy-js/core"; +import type { LibrarySymbolReference } from "@alloy-js/core"; type WebLibrary = LibrarySymbolReference & { HttpUtility: LibrarySymbolReference & { diff --git a/packages/csharp/src/builtins/System/Windows/Input/index.ts b/packages/csharp/src/builtins/System/Windows/Input/index.ts index 0d5f306ed..3d3a76864 100644 --- a/packages/csharp/src/builtins/System/Windows/Input/index.ts +++ b/packages/csharp/src/builtins/System/Windows/Input/index.ts @@ -1,5 +1,5 @@ import { createLibrary } from "#createLibrary"; -import { LibrarySymbolReference } from "@alloy-js/core"; +import type { LibrarySymbolReference } from "@alloy-js/core"; type InputLibrary = LibrarySymbolReference & { ICommand: LibrarySymbolReference & { diff --git a/packages/csharp/src/builtins/System/Windows/Markup/index.ts b/packages/csharp/src/builtins/System/Windows/Markup/index.ts index b14e69802..f44063870 100644 --- a/packages/csharp/src/builtins/System/Windows/Markup/index.ts +++ b/packages/csharp/src/builtins/System/Windows/Markup/index.ts @@ -1,7 +1,7 @@ import System from "../../index.js"; import { createLibrary } from "#createLibrary"; -import { LibrarySymbolReference } from "@alloy-js/core"; +import type { LibrarySymbolReference } from "@alloy-js/core"; type MarkupLibrary = LibrarySymbolReference & { ValueSerializerAttribute: LibrarySymbolReference & { diff --git a/packages/csharp/src/builtins/System/Windows/index.ts b/packages/csharp/src/builtins/System/Windows/index.ts index 0183a1fd5..87eeb927c 100644 --- a/packages/csharp/src/builtins/System/Windows/index.ts +++ b/packages/csharp/src/builtins/System/Windows/index.ts @@ -1,5 +1,5 @@ import { createLibrary } from "#createLibrary"; -import { LibrarySymbolReference } from "@alloy-js/core";export { default as Input } from "./Input/index.js"; +import type { LibrarySymbolReference } from "@alloy-js/core";export { default as Input } from "./Input/index.js"; export { default as Markup } from "./Markup/index.js"; type WindowsLibrary = LibrarySymbolReference & { diff --git a/packages/csharp/src/builtins/System/Xml/Linq/index.ts b/packages/csharp/src/builtins/System/Xml/Linq/index.ts index f8afccd5b..b60111dbc 100644 --- a/packages/csharp/src/builtins/System/Xml/Linq/index.ts +++ b/packages/csharp/src/builtins/System/Xml/Linq/index.ts @@ -3,7 +3,7 @@ import System from "../../index.js"; import Xml from "../index.js"; import { createLibrary } from "#createLibrary"; -import { LibrarySymbolReference } from "@alloy-js/core"; +import type { LibrarySymbolReference } from "@alloy-js/core"; type LinqLibrary = LibrarySymbolReference & { Extensions: LibrarySymbolReference & { diff --git a/packages/csharp/src/builtins/System/Xml/Resolvers/index.ts b/packages/csharp/src/builtins/System/Xml/Resolvers/index.ts index 2822dee9a..c0f175789 100644 --- a/packages/csharp/src/builtins/System/Xml/Resolvers/index.ts +++ b/packages/csharp/src/builtins/System/Xml/Resolvers/index.ts @@ -2,7 +2,7 @@ import Generic from "../../Collections/Generic/index.js"; import Net from "../../Net/index.js"; import { createLibrary } from "#createLibrary"; -import { LibrarySymbolReference } from "@alloy-js/core"; +import type { LibrarySymbolReference } from "@alloy-js/core"; type ResolversLibrary = LibrarySymbolReference & { XmlKnownDtds: LibrarySymbolReference & { diff --git a/packages/csharp/src/builtins/System/Xml/Schema/index.ts b/packages/csharp/src/builtins/System/Xml/Schema/index.ts index a8e69b6b3..d8dc71546 100644 --- a/packages/csharp/src/builtins/System/Xml/Schema/index.ts +++ b/packages/csharp/src/builtins/System/Xml/Schema/index.ts @@ -4,7 +4,7 @@ import Xml from "../index.js"; import Serialization from "../Serialization/index.js"; import { createLibrary } from "#createLibrary"; -import { LibrarySymbolReference } from "@alloy-js/core"; +import type { LibrarySymbolReference } from "@alloy-js/core"; type SchemaLibrary = LibrarySymbolReference & { Extensions: LibrarySymbolReference & { diff --git a/packages/csharp/src/builtins/System/Xml/Serialization/index.ts b/packages/csharp/src/builtins/System/Xml/Serialization/index.ts index fe87bade1..015412123 100644 --- a/packages/csharp/src/builtins/System/Xml/Serialization/index.ts +++ b/packages/csharp/src/builtins/System/Xml/Serialization/index.ts @@ -5,7 +5,7 @@ import Xml from "../index.js"; import Schema from "../Schema/index.js"; import { createLibrary } from "#createLibrary"; -import { LibrarySymbolReference } from "@alloy-js/core"; +import type { LibrarySymbolReference } from "@alloy-js/core"; type SerializationLibrary = LibrarySymbolReference & { CodeGenerationOptions: LibrarySymbolReference & { diff --git a/packages/csharp/src/builtins/System/Xml/XPath/index.ts b/packages/csharp/src/builtins/System/Xml/XPath/index.ts index 96ab4df0a..83b927ab4 100644 --- a/packages/csharp/src/builtins/System/Xml/XPath/index.ts +++ b/packages/csharp/src/builtins/System/Xml/XPath/index.ts @@ -4,7 +4,7 @@ import Xml from "../index.js"; import Schema from "../Schema/index.js"; import { createLibrary } from "#createLibrary"; -import { LibrarySymbolReference } from "@alloy-js/core"; +import type { LibrarySymbolReference } from "@alloy-js/core"; type XPathLibrary = LibrarySymbolReference & { Extensions: LibrarySymbolReference & { diff --git a/packages/csharp/src/builtins/System/Xml/Xsl/index.ts b/packages/csharp/src/builtins/System/Xml/Xsl/index.ts index 2d9abb8c7..96dfa86f0 100644 --- a/packages/csharp/src/builtins/System/Xml/Xsl/index.ts +++ b/packages/csharp/src/builtins/System/Xml/Xsl/index.ts @@ -3,7 +3,7 @@ import Xml from "../index.js"; import XPath from "../XPath/index.js"; import { createLibrary } from "#createLibrary"; -import { LibrarySymbolReference } from "@alloy-js/core"; +import type { LibrarySymbolReference } from "@alloy-js/core"; type XslLibrary = LibrarySymbolReference & { IXsltContextFunction: LibrarySymbolReference & { diff --git a/packages/csharp/src/builtins/System/Xml/index.ts b/packages/csharp/src/builtins/System/Xml/index.ts index 7f7e4266e..382916ab8 100644 --- a/packages/csharp/src/builtins/System/Xml/index.ts +++ b/packages/csharp/src/builtins/System/Xml/index.ts @@ -6,7 +6,7 @@ import Text from "../Text/index.js"; import Schema from "./Schema/index.js"; import { createLibrary } from "#createLibrary"; -import { LibrarySymbolReference } from "@alloy-js/core";export { default as Linq } from "./Linq/index.js"; +import type { LibrarySymbolReference } from "@alloy-js/core";export { default as Linq } from "./Linq/index.js"; export { default as Resolvers } from "./Resolvers/index.js"; export { default as Schema } from "./Schema/index.js"; export { default as Serialization } from "./Serialization/index.js"; diff --git a/packages/csharp/src/builtins/System/index.ts b/packages/csharp/src/builtins/System/index.ts index f870d4c42..7c4b55aa5 100644 --- a/packages/csharp/src/builtins/System/index.ts +++ b/packages/csharp/src/builtins/System/index.ts @@ -8,7 +8,7 @@ import Text from "./Text/index.js"; import Threading from "./Threading/index.js"; import { createLibrary } from "#createLibrary"; -import { LibrarySymbolReference } from "@alloy-js/core";export { default as Buffers } from "./Buffers/index.js"; +import type { LibrarySymbolReference } from "@alloy-js/core";export { default as Buffers } from "./Buffers/index.js"; export { default as CodeDom } from "./CodeDom/index.js"; export { default as Collections } from "./Collections/index.js"; export { default as ComponentModel } from "./ComponentModel/index.js"; diff --git a/packages/csharp/src/components/Declaration.tsx b/packages/csharp/src/components/Declaration.tsx index 1d1d2683b..7ac3926dc 100644 --- a/packages/csharp/src/components/Declaration.tsx +++ b/packages/csharp/src/components/Declaration.tsx @@ -1,4 +1,4 @@ -import * as core from "@alloy-js/core"; +import type * as core from "@alloy-js/core"; // properties for creating a declaration export interface DeclarationProps { diff --git a/packages/csharp/src/components/access-expression/access-expression.tsx b/packages/csharp/src/components/access-expression/access-expression.tsx index ff4bc266c..61522c34f 100644 --- a/packages/csharp/src/components/access-expression/access-expression.tsx +++ b/packages/csharp/src/components/access-expression/access-expression.tsx @@ -1,13 +1,7 @@ -import { - Children, - computed, - createAccessExpression, - For, - Refkeyable, - Show, -} from "@alloy-js/core"; +import type { Children, Refkeyable } from "@alloy-js/core"; +import { computed, createAccessExpression, For, Show } from "@alloy-js/core"; -import { CSharpSymbol } from "../../symbols/csharp.js"; +import type { CSharpSymbol } from "../../symbols/csharp.js"; import { normalizeAttributeName } from "./part-descriptors.js"; export interface AccessExpressionProps { diff --git a/packages/csharp/src/components/attributes/attributes.tsx b/packages/csharp/src/components/attributes/attributes.tsx index 5ba12b8f3..da074f0c9 100644 --- a/packages/csharp/src/components/attributes/attributes.tsx +++ b/packages/csharp/src/components/attributes/attributes.tsx @@ -1,9 +1,8 @@ +import type { Children, Refkeyable } from "@alloy-js/core"; import { - Children, findKeyedChildren, For, Indent, - Refkeyable, taggedComponent, } from "@alloy-js/core"; diff --git a/packages/csharp/src/components/class/declaration.test.tsx b/packages/csharp/src/components/class/declaration.test.tsx index 9474a27e3..7da544982 100644 --- a/packages/csharp/src/components/class/declaration.test.tsx +++ b/packages/csharp/src/components/class/declaration.test.tsx @@ -18,7 +18,7 @@ import { Attribute } from "../attributes/attributes.jsx"; import { Field } from "../field/field.jsx"; import { Method } from "../method/method.jsx"; import { Property } from "../property/property.jsx"; -import { TypeParameterProps } from "../type-parameters/type-parameter.jsx"; +import type { TypeParameterProps } from "../type-parameters/type-parameter.jsx"; import { ClassDeclaration } from "./declaration.jsx"; it("declares class with no members", () => { diff --git a/packages/csharp/src/components/class/declaration.tsx b/packages/csharp/src/components/class/declaration.tsx index 72709107b..60f1b786e 100644 --- a/packages/csharp/src/components/class/declaration.tsx +++ b/packages/csharp/src/components/class/declaration.tsx @@ -1,28 +1,26 @@ -import { - Block, +import type { Children, - Declaration, DeclarationProps, - join, - Name, Namekey, Refkey, - Scope, } from "@alloy-js/core"; +import { Block, Declaration, join, Name, Scope } from "@alloy-js/core"; +import type { AccessModifiers } from "../../modifiers.js"; import { - AccessModifiers, computeModifiersPrefix, getAccessModifier, makeModifiers, } from "../../modifiers.js"; import { createClassScope } from "../../scopes/factories.js"; import { createNamedTypeSymbol } from "../../symbols/factories.js"; -import { AttributeList, AttributesProp } from "../attributes/attributes.jsx"; +import type { AttributesProp } from "../attributes/attributes.jsx"; +import { AttributeList } from "../attributes/attributes.jsx"; import { DocWhen } from "../doc/comment.jsx"; -import { ParameterProps, Parameters } from "../parameters/parameters.jsx"; +import type { ParameterProps } from "../parameters/parameters.jsx"; +import { Parameters } from "../parameters/parameters.jsx"; import { TypeParameterConstraints } from "../type-parameters/type-parameter-constraints.jsx"; -import { TypeParameterProps } from "../type-parameters/type-parameter.jsx"; +import type { TypeParameterProps } from "../type-parameters/type-parameter.jsx"; import { TypeParameters } from "../type-parameters/type-parameters.jsx"; export interface ClassModifiers { diff --git a/packages/csharp/src/components/constructor/constructor.tsx b/packages/csharp/src/components/constructor/constructor.tsx index 85c7ddd59..7ad8161da 100644 --- a/packages/csharp/src/components/constructor/constructor.tsx +++ b/packages/csharp/src/components/constructor/constructor.tsx @@ -1,24 +1,22 @@ +import type { Refkey } from "@alloy-js/core"; import { Block, For, Indent, MemberDeclaration, MemberName, - Refkey, } from "@alloy-js/core"; -import { Children } from "@alloy-js/core/jsx-runtime"; +import type { Children } from "@alloy-js/core/jsx-runtime"; import { MethodScope } from "#components/method-scope.jsx"; -import { - AccessModifiers, - computeModifiersPrefix, - getAccessModifier, -} from "../../modifiers.js"; +import type { AccessModifiers } from "../../modifiers.js"; +import { computeModifiersPrefix, getAccessModifier } from "../../modifiers.js"; import { useNamedTypeScope } from "../../scopes/contexts.js"; import { MethodSymbol } from "../../symbols/method.js"; import { DocWhen } from "../doc/comment.jsx"; -import { ParameterProps, Parameters } from "../parameters/parameters.jsx"; +import type { ParameterProps } from "../parameters/parameters.jsx"; +import { Parameters } from "../parameters/parameters.jsx"; /** * Properties for {@link Constructor} component. diff --git a/packages/csharp/src/components/csproj-file/csproj-file.tsx b/packages/csharp/src/components/csproj-file/csproj-file.tsx index a883bc2db..69eaaf806 100644 --- a/packages/csharp/src/components/csproj-file/csproj-file.tsx +++ b/packages/csharp/src/components/csproj-file/csproj-file.tsx @@ -1,4 +1,5 @@ -import { Children, SourceFile } from "@alloy-js/core"; +import type { Children } from "@alloy-js/core"; +import { SourceFile } from "@alloy-js/core"; import { Project } from "@alloy-js/msbuild/components"; export type CSharpProjectSdk = diff --git a/packages/csharp/src/components/doc/comment.tsx b/packages/csharp/src/components/doc/comment.tsx index 39345ad96..e4e8693a0 100644 --- a/packages/csharp/src/components/doc/comment.tsx +++ b/packages/csharp/src/components/doc/comment.tsx @@ -1,4 +1,5 @@ -import { Children, code, For, Indent, List, Prose, Show } from "@alloy-js/core"; +import type { Children } from "@alloy-js/core"; +import { code, For, Indent, List, Prose, Show } from "@alloy-js/core"; export interface DocCommentProps { children: Children; diff --git a/packages/csharp/src/components/doc/from-markdown.tsx b/packages/csharp/src/components/doc/from-markdown.tsx index e06b01e31..035257e28 100644 --- a/packages/csharp/src/components/doc/from-markdown.tsx +++ b/packages/csharp/src/components/doc/from-markdown.tsx @@ -1,4 +1,5 @@ -import { marked, Tokens, type Token } from "marked"; +import type { Tokens } from "marked"; +import { marked, type Token } from "marked"; import { DocC, DocCode, DocList, DocSee } from "./comment.jsx"; diff --git a/packages/csharp/src/components/enum/declaration.tsx b/packages/csharp/src/components/enum/declaration.tsx index b14effffd..fc7f32a84 100644 --- a/packages/csharp/src/components/enum/declaration.tsx +++ b/packages/csharp/src/components/enum/declaration.tsx @@ -1,17 +1,8 @@ -import { - Block, - Children, - Declaration, - MemberScope, - Namekey, - Refkey, -} from "@alloy-js/core"; +import type { Children, Namekey, Refkey } from "@alloy-js/core"; +import { Block, Declaration, MemberScope } from "@alloy-js/core"; -import { - AccessModifiers, - computeModifiersPrefix, - getAccessModifier, -} from "../../modifiers.js"; +import type { AccessModifiers } from "../../modifiers.js"; +import { computeModifiersPrefix, getAccessModifier } from "../../modifiers.js"; import { useCSharpNamePolicy } from "../../name-policy.js"; import { createNamedTypeScope } from "../../scopes/factories.js"; import { createNamedTypeSymbol } from "../../symbols/factories.js"; diff --git a/packages/csharp/src/components/enum/member.tsx b/packages/csharp/src/components/enum/member.tsx index b977c1204..ee937fce1 100644 --- a/packages/csharp/src/components/enum/member.tsx +++ b/packages/csharp/src/components/enum/member.tsx @@ -1,11 +1,5 @@ -import { - Children, - createSymbol, - MemberDeclaration, - MemberName, - Namekey, - Refkey, -} from "@alloy-js/core"; +import type { Children, Namekey, Refkey } from "@alloy-js/core"; +import { createSymbol, MemberDeclaration, MemberName } from "@alloy-js/core"; import { useCSharpNamePolicy } from "../../name-policy.js"; import { useNamedTypeScope } from "../../scopes/contexts.js"; diff --git a/packages/csharp/src/components/field/field.tsx b/packages/csharp/src/components/field/field.tsx index 98c89f607..c5c8978a2 100644 --- a/packages/csharp/src/components/field/field.tsx +++ b/packages/csharp/src/components/field/field.tsx @@ -1,7 +1,8 @@ -import { Children, Declaration, Name, Namekey, Refkey } from "@alloy-js/core"; +import type { Children, Namekey, Refkey } from "@alloy-js/core"; +import { Declaration, Name } from "@alloy-js/core"; +import type { AccessModifiers } from "../../modifiers.js"; import { - AccessModifiers, computeModifiersPrefix, getAccessModifier, makeModifiers, diff --git a/packages/csharp/src/components/interface/declaration.test.tsx b/packages/csharp/src/components/interface/declaration.test.tsx index db5491cab..2d634d194 100644 --- a/packages/csharp/src/components/interface/declaration.test.tsx +++ b/packages/csharp/src/components/interface/declaration.test.tsx @@ -3,7 +3,7 @@ import { describe, expect, it } from "vitest"; import { TestNamespace } from "../../../test/utils.jsx"; import { Attribute } from "../attributes/attributes.jsx"; -import { TypeParameterProps } from "../type-parameters/type-parameter.jsx"; +import type { TypeParameterProps } from "../type-parameters/type-parameter.jsx"; import { InterfaceDeclaration } from "./declaration.jsx"; import { InterfaceProperty } from "./property.jsx"; diff --git a/packages/csharp/src/components/interface/declaration.tsx b/packages/csharp/src/components/interface/declaration.tsx index 2758a696e..9696596b6 100644 --- a/packages/csharp/src/components/interface/declaration.tsx +++ b/packages/csharp/src/components/interface/declaration.tsx @@ -1,7 +1,7 @@ import * as core from "@alloy-js/core"; +import type { AccessModifiers } from "../../modifiers.js"; import { - AccessModifiers, computeModifiersPrefix, getAccessModifier, makeModifiers, @@ -9,11 +9,12 @@ import { import { useCSharpNamePolicy } from "../../name-policy.js"; import { createNamedTypeScope } from "../../scopes/factories.js"; import { createNamedTypeSymbol } from "../../symbols/factories.js"; -import { AttributeList, AttributesProp } from "../attributes/attributes.jsx"; +import type { AttributesProp } from "../attributes/attributes.jsx"; +import { AttributeList } from "../attributes/attributes.jsx"; import { DocWhen } from "../doc/comment.jsx"; import { Name } from "../Name.jsx"; import { TypeParameterConstraints } from "../type-parameters/type-parameter-constraints.jsx"; -import { TypeParameterProps } from "../type-parameters/type-parameter.jsx"; +import type { TypeParameterProps } from "../type-parameters/type-parameter.jsx"; import { TypeParameters } from "../type-parameters/type-parameters.jsx"; export interface InterfaceModifiers { diff --git a/packages/csharp/src/components/interface/method.test.tsx b/packages/csharp/src/components/interface/method.test.tsx index 67874d796..9597dcd8c 100644 --- a/packages/csharp/src/components/interface/method.test.tsx +++ b/packages/csharp/src/components/interface/method.test.tsx @@ -1,10 +1,10 @@ import { namekey, refkey } from "@alloy-js/core"; -import { Children } from "@alloy-js/core/jsx-runtime"; +import type { Children } from "@alloy-js/core/jsx-runtime"; import { describe, expect, it } from "vitest"; import { TestNamespace } from "../../../test/utils.jsx"; import { Attribute } from "../attributes/attributes.jsx"; -import { TypeParameterProps } from "../type-parameters/type-parameter.jsx"; +import type { TypeParameterProps } from "../type-parameters/type-parameter.jsx"; import { InterfaceDeclaration } from "./declaration.jsx"; import { InterfaceMethod } from "./method.jsx"; diff --git a/packages/csharp/src/components/interface/method.tsx b/packages/csharp/src/components/interface/method.tsx index 24bf4acbb..64d50c073 100644 --- a/packages/csharp/src/components/interface/method.tsx +++ b/packages/csharp/src/components/interface/method.tsx @@ -1,26 +1,21 @@ -import { - Block, - Children, - MemberDeclaration, - MemberName, - Namekey, - Refkey, - Scope, -} from "@alloy-js/core"; +import type { Children, Namekey, Refkey } from "@alloy-js/core"; +import { Block, MemberDeclaration, MemberName, Scope } from "@alloy-js/core"; +import type { AccessModifiers } from "../../modifiers.js"; import { - AccessModifiers, computeModifiersPrefix, getAccessModifier, makeModifiers, } from "../../modifiers.js"; import { createMethodScope } from "../../scopes/factories.js"; import { createMethodSymbol } from "../../symbols/factories.js"; -import { AttributeList, AttributesProp } from "../attributes/attributes.jsx"; +import type { AttributesProp } from "../attributes/attributes.jsx"; +import { AttributeList } from "../attributes/attributes.jsx"; import { DocWhen } from "../doc/comment.jsx"; -import { ParameterProps, Parameters } from "../parameters/parameters.jsx"; +import type { ParameterProps } from "../parameters/parameters.jsx"; +import { Parameters } from "../parameters/parameters.jsx"; import { TypeParameterConstraints } from "../type-parameters/type-parameter-constraints.jsx"; -import { TypeParameterProps } from "../type-parameters/type-parameter.jsx"; +import type { TypeParameterProps } from "../type-parameters/type-parameter.jsx"; import { TypeParameters } from "../type-parameters/type-parameters.jsx"; /** Method modifiers. Can only be one. */ diff --git a/packages/csharp/src/components/interface/property.test.tsx b/packages/csharp/src/components/interface/property.test.tsx index f114fce12..9177544b7 100644 --- a/packages/csharp/src/components/interface/property.test.tsx +++ b/packages/csharp/src/components/interface/property.test.tsx @@ -1,4 +1,4 @@ -import { Children } from "@alloy-js/core/jsx-runtime"; +import type { Children } from "@alloy-js/core/jsx-runtime"; import { describe, expect, it } from "vitest"; import { namekey } from "../../../../core/src/refkey.js"; diff --git a/packages/csharp/src/components/interface/property.tsx b/packages/csharp/src/components/interface/property.tsx index 65628b31f..5603fbd52 100644 --- a/packages/csharp/src/components/interface/property.tsx +++ b/packages/csharp/src/components/interface/property.tsx @@ -1,21 +1,15 @@ -import { - Block, - Children, - List, - MemberDeclaration, - MemberName, - Namekey, - Refkey, -} from "@alloy-js/core"; +import type { Children, Namekey, Refkey } from "@alloy-js/core"; +import { Block, List, MemberDeclaration, MemberName } from "@alloy-js/core"; +import type { AccessModifiers } from "../../modifiers.js"; import { - AccessModifiers, computeModifiersPrefix, getAccessModifier, makeModifiers, } from "../../modifiers.js"; import { createPropertySymbol } from "../../symbols/factories.js"; -import { AttributeList, AttributesProp } from "../attributes/attributes.jsx"; +import type { AttributesProp } from "../attributes/attributes.jsx"; +import { AttributeList } from "../attributes/attributes.jsx"; import { DocWhen } from "../doc/comment.jsx"; /** Method modifiers. Can only be one. */ diff --git a/packages/csharp/src/components/invocation-expression/invocation-expression.tsx b/packages/csharp/src/components/invocation-expression/invocation-expression.tsx index b6810540b..592fbf80f 100644 --- a/packages/csharp/src/components/invocation-expression/invocation-expression.tsx +++ b/packages/csharp/src/components/invocation-expression/invocation-expression.tsx @@ -1,4 +1,5 @@ -import { Children, For, Indent, Show, Wrap } from "@alloy-js/core"; +import type { Children } from "@alloy-js/core"; +import { For, Indent, Show, Wrap } from "@alloy-js/core"; export interface InvocationExpressionProps { target: Children; diff --git a/packages/csharp/src/components/lexical-scope.tsx b/packages/csharp/src/components/lexical-scope.tsx index b60b45589..bdc61cfa7 100644 --- a/packages/csharp/src/components/lexical-scope.tsx +++ b/packages/csharp/src/components/lexical-scope.tsx @@ -1,9 +1,5 @@ -import { - Scope, - ScopePropsWithInfo, - ScopePropsWithValue, - createScope, -} from "@alloy-js/core"; +import type { ScopePropsWithInfo, ScopePropsWithValue } from "@alloy-js/core"; +import { Scope, createScope } from "@alloy-js/core"; import { useCSharpScope } from "../scopes/contexts.js"; import { CSharpLexicalScope } from "../scopes/lexical.js"; diff --git a/packages/csharp/src/components/method-scope.tsx b/packages/csharp/src/components/method-scope.tsx index 28d56cc63..8ab79c5a5 100644 --- a/packages/csharp/src/components/method-scope.tsx +++ b/packages/csharp/src/components/method-scope.tsx @@ -1,9 +1,5 @@ -import { - Scope, - ScopePropsWithInfo, - ScopePropsWithValue, - createScope, -} from "@alloy-js/core"; +import type { ScopePropsWithInfo, ScopePropsWithValue } from "@alloy-js/core"; +import { Scope, createScope } from "@alloy-js/core"; import { useCSharpScope } from "../scopes/contexts.js"; import { CSharpMethodScope } from "../scopes/method.js"; diff --git a/packages/csharp/src/components/method/method.test.tsx b/packages/csharp/src/components/method/method.test.tsx index f24b854eb..ce588d6c7 100644 --- a/packages/csharp/src/components/method/method.test.tsx +++ b/packages/csharp/src/components/method/method.test.tsx @@ -1,4 +1,4 @@ -import { Children } from "@alloy-js/core/jsx-runtime"; +import type { Children } from "@alloy-js/core/jsx-runtime"; import { describe, expect, it } from "vitest"; import { TestNamespace } from "../../../test/utils.jsx"; diff --git a/packages/csharp/src/components/method/method.tsx b/packages/csharp/src/components/method/method.tsx index 20bf43c26..067a96499 100644 --- a/packages/csharp/src/components/method/method.tsx +++ b/packages/csharp/src/components/method/method.tsx @@ -1,15 +1,8 @@ -import { - Block, - Children, - MemberDeclaration, - MemberName, - Namekey, - Refkey, - Scope, -} from "@alloy-js/core"; +import type { Children, Namekey, Refkey } from "@alloy-js/core"; +import { Block, MemberDeclaration, MemberName, Scope } from "@alloy-js/core"; +import type { AccessModifiers } from "../../modifiers.js"; import { - AccessModifiers, computeModifiersPrefix, getAccessModifier, getAsyncModifier, @@ -17,11 +10,13 @@ import { } from "../../modifiers.js"; import { createMethodScope } from "../../scopes/factories.js"; import { createMethodSymbol } from "../../symbols/factories.js"; -import { AttributeList, AttributesProp } from "../attributes/attributes.jsx"; +import type { AttributesProp } from "../attributes/attributes.jsx"; +import { AttributeList } from "../attributes/attributes.jsx"; import { DocWhen } from "../doc/comment.jsx"; -import { ParameterProps, Parameters } from "../parameters/parameters.jsx"; +import type { ParameterProps } from "../parameters/parameters.jsx"; +import { Parameters } from "../parameters/parameters.jsx"; import { TypeParameterConstraints } from "../type-parameters/type-parameter-constraints.jsx"; -import { TypeParameterProps } from "../type-parameters/type-parameter.jsx"; +import type { TypeParameterProps } from "../type-parameters/type-parameter.jsx"; import { TypeParameters } from "../type-parameters/type-parameters.jsx"; /** Method modifiers. Can only be one. */ diff --git a/packages/csharp/src/components/namespace-scopes.tsx b/packages/csharp/src/components/namespace-scopes.tsx index b18e44ebb..4ba589d64 100644 --- a/packages/csharp/src/components/namespace-scopes.tsx +++ b/packages/csharp/src/components/namespace-scopes.tsx @@ -1,9 +1,9 @@ import { Scope } from "@alloy-js/core"; -import { Children } from "@alloy-js/core/jsx-runtime"; +import type { Children } from "@alloy-js/core/jsx-runtime"; import { NamespaceContext } from "../contexts/namespace.js"; import { createCSharpNamespaceScope } from "../scopes/namespace.js"; -import { NamespaceSymbol } from "../symbols/namespace.js"; +import type { NamespaceSymbol } from "../symbols/namespace.js"; export interface NamespaceScopProps { symbol: NamespaceSymbol; diff --git a/packages/csharp/src/components/namespace/namespace.tsx b/packages/csharp/src/components/namespace/namespace.tsx index 2288659ec..c74282237 100644 --- a/packages/csharp/src/components/namespace/namespace.tsx +++ b/packages/csharp/src/components/namespace/namespace.tsx @@ -1,5 +1,6 @@ -import { Block, Namekey, Refkey } from "@alloy-js/core"; -import { Children } from "@alloy-js/core/jsx-runtime"; +import type { Namekey, Refkey } from "@alloy-js/core"; +import { Block } from "@alloy-js/core"; +import type { Children } from "@alloy-js/core/jsx-runtime"; import { NamespaceContext, diff --git a/packages/csharp/src/components/parameters/parameters.test.tsx b/packages/csharp/src/components/parameters/parameters.test.tsx index 5bef78bfb..7eb63fb5e 100644 --- a/packages/csharp/src/components/parameters/parameters.test.tsx +++ b/packages/csharp/src/components/parameters/parameters.test.tsx @@ -1,5 +1,5 @@ import { List, memberRefkey, namekey } from "@alloy-js/core"; -import { Children } from "@alloy-js/core/jsx-runtime"; +import type { Children } from "@alloy-js/core/jsx-runtime"; import { expect, it } from "vitest"; import { Attribute } from "#components/attributes/attributes.jsx"; diff --git a/packages/csharp/src/components/parameters/parameters.tsx b/packages/csharp/src/components/parameters/parameters.tsx index d7799ead5..8bbf8bac5 100644 --- a/packages/csharp/src/components/parameters/parameters.tsx +++ b/packages/csharp/src/components/parameters/parameters.tsx @@ -1,16 +1,15 @@ +import type { Children, Namekey, Refkey } from "@alloy-js/core"; import { - Children, code, createSymbolSlot, Declaration, For, Indent, - Namekey, - Refkey, } from "@alloy-js/core"; import { createParameterSymbol } from "../../symbols/factories.js"; -import { AttributeList, AttributesProp } from "../attributes/attributes.jsx"; +import type { AttributesProp } from "../attributes/attributes.jsx"; +import { AttributeList } from "../attributes/attributes.jsx"; import { Name } from "../Name.jsx"; export interface ParameterProps { diff --git a/packages/csharp/src/components/property/property.test.tsx b/packages/csharp/src/components/property/property.test.tsx index ebbfa46fb..82f93cd27 100644 --- a/packages/csharp/src/components/property/property.test.tsx +++ b/packages/csharp/src/components/property/property.test.tsx @@ -1,4 +1,4 @@ -import { Children } from "@alloy-js/core/jsx-runtime"; +import type { Children } from "@alloy-js/core/jsx-runtime"; import { describe, expect, it } from "vitest"; import { TestNamespace } from "../../../test/utils.jsx"; diff --git a/packages/csharp/src/components/property/property.tsx b/packages/csharp/src/components/property/property.tsx index 6871e7003..1ba855d3b 100644 --- a/packages/csharp/src/components/property/property.tsx +++ b/packages/csharp/src/components/property/property.tsx @@ -1,22 +1,21 @@ +import type { Children, Namekey, Refkey } from "@alloy-js/core"; import { Block, - Children, createSymbolSlot, List, MemberDeclaration, MemberName, - Namekey, - Refkey, } from "@alloy-js/core"; +import type { AccessModifiers } from "../../modifiers.js"; import { - AccessModifiers, computeModifiersPrefix, getAccessModifier, makeModifiers, } from "../../modifiers.js"; import { createPropertySymbol } from "../../symbols/factories.js"; -import { AttributeList, AttributesProp } from "../attributes/attributes.jsx"; +import type { AttributesProp } from "../attributes/attributes.jsx"; +import { AttributeList } from "../attributes/attributes.jsx"; import { DocWhen } from "../doc/comment.jsx"; /** Property modifiers. */ diff --git a/packages/csharp/src/components/record/declaration.test.tsx b/packages/csharp/src/components/record/declaration.test.tsx index f6bb4fd4e..147e16b01 100644 --- a/packages/csharp/src/components/record/declaration.test.tsx +++ b/packages/csharp/src/components/record/declaration.test.tsx @@ -1,4 +1,5 @@ -import { Children, code, namekey, refkey } from "@alloy-js/core"; +import type { Children } from "@alloy-js/core"; +import { code, namekey, refkey } from "@alloy-js/core"; import { describe, expect, it } from "vitest"; import { TestNamespace } from "../../../test/utils.jsx"; diff --git a/packages/csharp/src/components/record/declaration.tsx b/packages/csharp/src/components/record/declaration.tsx index b3170a43d..913acd751 100644 --- a/packages/csharp/src/components/record/declaration.tsx +++ b/packages/csharp/src/components/record/declaration.tsx @@ -1,7 +1,7 @@ import * as core from "@alloy-js/core"; +import type { AccessModifiers } from "../../modifiers.js"; import { - AccessModifiers, computeModifiersPrefix, getAccessModifier, makeModifiers, @@ -14,7 +14,8 @@ import { } from "../../symbols/factories.js"; import { DocWhen } from "../doc/comment.jsx"; import { Name } from "../Name.jsx"; -import { ParameterProps, Parameters } from "../parameters/parameters.jsx"; +import type { ParameterProps } from "../parameters/parameters.jsx"; +import { Parameters } from "../parameters/parameters.jsx"; export interface RecordModifiers { readonly partial?: boolean; diff --git a/packages/csharp/src/components/region/region.test.tsx b/packages/csharp/src/components/region/region.test.tsx index 6b2095e1d..7a5437cf9 100644 --- a/packages/csharp/src/components/region/region.test.tsx +++ b/packages/csharp/src/components/region/region.test.tsx @@ -1,4 +1,4 @@ -import { Children } from "@alloy-js/core/jsx-runtime"; +import type { Children } from "@alloy-js/core/jsx-runtime"; import { expect, it } from "vitest"; import { TestNamespace } from "../../../test/utils.jsx"; diff --git a/packages/csharp/src/components/region/region.tsx b/packages/csharp/src/components/region/region.tsx index 5ef5d70f3..33af5b50f 100644 --- a/packages/csharp/src/components/region/region.tsx +++ b/packages/csharp/src/components/region/region.tsx @@ -1,4 +1,5 @@ -import { Children, code, List } from "@alloy-js/core"; +import type { Children } from "@alloy-js/core"; +import { code, List } from "@alloy-js/core"; export interface RegionProps { name: string; diff --git a/packages/csharp/src/components/source-file/source-file.test.tsx b/packages/csharp/src/components/source-file/source-file.test.tsx index 64004fdbf..cd0bc3ce9 100644 --- a/packages/csharp/src/components/source-file/source-file.test.tsx +++ b/packages/csharp/src/components/source-file/source-file.test.tsx @@ -1,11 +1,5 @@ -import { - Children, - FormatOptions, - Indent, - List, - Output, - Prose, -} from "@alloy-js/core"; +import type { Children } from "@alloy-js/core"; +import { FormatOptions, Indent, List, Output, Prose } from "@alloy-js/core"; import { Serialization } from "@alloy-js/csharp/global/System/Text/Json"; import { describe, expect, it } from "vitest"; diff --git a/packages/csharp/src/components/source-file/source-file.tsx b/packages/csharp/src/components/source-file/source-file.tsx index 849727a47..bf5a63b55 100644 --- a/packages/csharp/src/components/source-file/source-file.tsx +++ b/packages/csharp/src/components/source-file/source-file.tsx @@ -1,6 +1,6 @@ +import type { Children } from "@alloy-js/core"; import { Block, - Children, computed, SourceFile as CoreSourceFile, createScope, @@ -16,14 +16,12 @@ import { NamespaceName } from "#components/namespace/namespace-name.jsx"; import { Reference } from "#components/Reference.jsx"; import { Usings } from "#components/using/using.jsx"; -import { - CSharpFormatOptions, - useCsharpFormatOptions, -} from "../../contexts/format-options.js"; +import type { CSharpFormatOptions } from "../../contexts/format-options.js"; +import { useCsharpFormatOptions } from "../../contexts/format-options.js"; import { getGlobalNamespace } from "../../contexts/global-namespace.js"; import { useNamespaceContext } from "../../contexts/namespace.js"; import { CSharpSourceFileScope } from "../../scopes/source-file.js"; -import { NamespaceSymbol } from "../../symbols/namespace.js"; +import type { NamespaceSymbol } from "../../symbols/namespace.js"; /** * Props for {@link SourceFile} component diff --git a/packages/csharp/src/components/struct/declaration.test.tsx b/packages/csharp/src/components/struct/declaration.test.tsx index 94ffa215e..ba4d0f596 100644 --- a/packages/csharp/src/components/struct/declaration.test.tsx +++ b/packages/csharp/src/components/struct/declaration.test.tsx @@ -7,7 +7,7 @@ import { Constructor } from "../constructor/constructor.jsx"; import { Field } from "../field/field.jsx"; import { Method } from "../method/method.jsx"; import { Property } from "../property/property.jsx"; -import { TypeParameterProps } from "../type-parameters/type-parameter.jsx"; +import type { TypeParameterProps } from "../type-parameters/type-parameter.jsx"; import { StructDeclaration } from "./declaration.jsx"; it("declares struct with no members", () => { diff --git a/packages/csharp/src/components/struct/declaration.tsx b/packages/csharp/src/components/struct/declaration.tsx index 3495d792a..819a1892b 100644 --- a/packages/csharp/src/components/struct/declaration.tsx +++ b/packages/csharp/src/components/struct/declaration.tsx @@ -1,8 +1,8 @@ import * as core from "@alloy-js/core"; import { join } from "@alloy-js/core"; +import type { AccessModifiers } from "../../modifiers.js"; import { - AccessModifiers, computeModifiersPrefix, getAccessModifier, makeModifiers, @@ -10,11 +10,12 @@ import { import { useCSharpNamePolicy } from "../../name-policy.js"; import { createNamedTypeScope } from "../../scopes/factories.js"; import { createNamedTypeSymbol } from "../../symbols/factories.js"; -import { AttributeList, AttributesProp } from "../attributes/attributes.jsx"; +import type { AttributesProp } from "../attributes/attributes.jsx"; +import { AttributeList } from "../attributes/attributes.jsx"; import { DocWhen } from "../doc/comment.jsx"; import { Name } from "../Name.jsx"; import { TypeParameterConstraints } from "../type-parameters/type-parameter-constraints.jsx"; -import { TypeParameterProps } from "../type-parameters/type-parameter.jsx"; +import type { TypeParameterProps } from "../type-parameters/type-parameter.jsx"; import { TypeParameters } from "../type-parameters/type-parameters.jsx"; export interface StructModifiers { diff --git a/packages/csharp/src/components/type-parameters/type-parameter-constraints.tsx b/packages/csharp/src/components/type-parameters/type-parameter-constraints.tsx index 79dd10a8b..6e0f744b3 100644 --- a/packages/csharp/src/components/type-parameters/type-parameter-constraints.tsx +++ b/packages/csharp/src/components/type-parameters/type-parameter-constraints.tsx @@ -1,6 +1,7 @@ -import { Children, code, For, Indent } from "@alloy-js/core"; +import type { Children } from "@alloy-js/core"; +import { code, For, Indent } from "@alloy-js/core"; -import { TypeParameterProps } from "./type-parameter.jsx"; +import type { TypeParameterProps } from "./type-parameter.jsx"; import { normalizeParameters } from "./type-parameters.jsx"; export interface TypeParameterConstraintsProps { diff --git a/packages/csharp/src/components/type-parameters/type-parameter.tsx b/packages/csharp/src/components/type-parameters/type-parameter.tsx index fd1b32494..65c2544a9 100644 --- a/packages/csharp/src/components/type-parameters/type-parameter.tsx +++ b/packages/csharp/src/components/type-parameters/type-parameter.tsx @@ -1,10 +1,5 @@ -import { - Children, - MemberDeclaration, - MemberName, - Namekey, - Refkey, -} from "@alloy-js/core"; +import type { Children, Namekey, Refkey } from "@alloy-js/core"; +import { MemberDeclaration, MemberName } from "@alloy-js/core"; import { createTypeParameterSymbol } from "../../symbols/factories.js"; diff --git a/packages/csharp/src/components/type-parameters/type-parameters.tsx b/packages/csharp/src/components/type-parameters/type-parameters.tsx index 2e6296a76..61e018401 100644 --- a/packages/csharp/src/components/type-parameters/type-parameters.tsx +++ b/packages/csharp/src/components/type-parameters/type-parameters.tsx @@ -1,6 +1,7 @@ import { For, Indent, taggedComponent } from "@alloy-js/core"; -import { TypeParameter, TypeParameterProps } from "./type-parameter.jsx"; +import type { TypeParameterProps } from "./type-parameter.jsx"; +import { TypeParameter } from "./type-parameter.jsx"; export const typeParametersTag = Symbol.for("csharp.type-parameters"); diff --git a/packages/csharp/src/components/using/using.tsx b/packages/csharp/src/components/using/using.tsx index b86cf6211..f089f5aae 100644 --- a/packages/csharp/src/components/using/using.tsx +++ b/packages/csharp/src/components/using/using.tsx @@ -1,6 +1,6 @@ import { computed, For } from "@alloy-js/core"; -import { NamespaceSymbol } from "../../symbols/namespace.js"; +import type { NamespaceSymbol } from "../../symbols/namespace.js"; export interface UsingsProps { /** diff --git a/packages/csharp/src/components/var/declaration.tsx b/packages/csharp/src/components/var/declaration.tsx index 224404cb3..d6877ca4d 100644 --- a/packages/csharp/src/components/var/declaration.tsx +++ b/packages/csharp/src/components/var/declaration.tsx @@ -1,12 +1,10 @@ -import { +import type { Children, - createSymbolSlot, - Declaration, DeclarationProps, - Name, Namekey, Refkey, } from "@alloy-js/core"; +import { createSymbolSlot, Declaration, Name } from "@alloy-js/core"; import { computeModifiersPrefix, makeModifiers } from "../../modifiers.js"; import { createVariableSymbol } from "../../symbols/factories.js"; diff --git a/packages/csharp/src/contexts/format-options.ts b/packages/csharp/src/contexts/format-options.ts index fd068d291..8d0471343 100644 --- a/packages/csharp/src/contexts/format-options.ts +++ b/packages/csharp/src/contexts/format-options.ts @@ -1,7 +1,5 @@ -import { - CommonFormatOptions, - createFormatOptionsContextFor, -} from "@alloy-js/core"; +import type { CommonFormatOptions } from "@alloy-js/core"; +import { createFormatOptionsContextFor } from "@alloy-js/core"; export interface CSharpFormatOptions extends CommonFormatOptions {} diff --git a/packages/csharp/src/contexts/global-namespace.ts b/packages/csharp/src/contexts/global-namespace.ts index bf91d4611..1e080fe8d 100644 --- a/packages/csharp/src/contexts/global-namespace.ts +++ b/packages/csharp/src/contexts/global-namespace.ts @@ -1,4 +1,5 @@ -import { Binder, createSymbol, useBinder } from "@alloy-js/core"; +import type { Binder } from "@alloy-js/core"; +import { createSymbol, useBinder } from "@alloy-js/core"; import { NamespaceSymbol } from "../symbols/namespace.js"; diff --git a/packages/csharp/src/contexts/namespace.ts b/packages/csharp/src/contexts/namespace.ts index fbedb0d97..10ed50f83 100644 --- a/packages/csharp/src/contexts/namespace.ts +++ b/packages/csharp/src/contexts/namespace.ts @@ -1,6 +1,7 @@ -import { ComponentContext, createContext, useContext } from "@alloy-js/core"; +import type { ComponentContext } from "@alloy-js/core"; +import { createContext, useContext } from "@alloy-js/core"; -import { NamespaceSymbol } from "../symbols/namespace.js"; +import type { NamespaceSymbol } from "../symbols/namespace.js"; export interface NamespaceContext { symbol: NamespaceSymbol; diff --git a/packages/csharp/src/contexts/reference-context.ts b/packages/csharp/src/contexts/reference-context.ts index cdc39e16e..557d70745 100644 --- a/packages/csharp/src/contexts/reference-context.ts +++ b/packages/csharp/src/contexts/reference-context.ts @@ -1,4 +1,5 @@ -import { ComponentContext, createContext, useContext } from "@alloy-js/core"; +import type { ComponentContext } from "@alloy-js/core"; +import { createContext, useContext } from "@alloy-js/core"; /** What kind of reference. * - 'standard' Default reference nothing special. diff --git a/packages/csharp/src/create-library.test.tsx b/packages/csharp/src/create-library.test.tsx index e6414cc26..e2a309268 100644 --- a/packages/csharp/src/create-library.test.tsx +++ b/packages/csharp/src/create-library.test.tsx @@ -11,7 +11,7 @@ import { resetGlobalNamespace, } from "./contexts/global-namespace.js"; import { createLibrary } from "./create-library.js"; -import { NamespaceSymbol } from "./symbols/namespace.js"; +import type { NamespaceSymbol } from "./symbols/namespace.js"; beforeEach(() => { resetGlobalNamespace(); diff --git a/packages/csharp/src/create-library.ts b/packages/csharp/src/create-library.ts index a6dca662c..042400fa5 100644 --- a/packages/csharp/src/create-library.ts +++ b/packages/csharp/src/create-library.ts @@ -1,7 +1,6 @@ +import type { Binder, LibrarySymbolReference } from "@alloy-js/core"; import { - Binder, createSymbol, - LibrarySymbolReference, namekey, refkey, REFKEYABLE, @@ -10,7 +9,8 @@ import { } from "@alloy-js/core"; import { getGlobalNamespace } from "./contexts/global-namespace.js"; -import { MethodKinds, MethodSymbol } from "./index.js"; +import type { MethodKinds } from "./index.js"; +import { MethodSymbol } from "./index.js"; import { CSharpSymbol } from "./symbols/csharp.js"; import { NamedTypeSymbol } from "./symbols/named-type.js"; import { NamespaceSymbol } from "./symbols/namespace.js"; diff --git a/packages/csharp/src/scopes/csharp.ts b/packages/csharp/src/scopes/csharp.ts index a2685d35b..9efbba4c0 100644 --- a/packages/csharp/src/scopes/csharp.ts +++ b/packages/csharp/src/scopes/csharp.ts @@ -1,7 +1,8 @@ -import { OutputScope, OutputScopeOptions } from "@alloy-js/core"; +import type { OutputScopeOptions } from "@alloy-js/core"; +import { OutputScope } from "@alloy-js/core"; import type { CSharpSymbol } from "../symbols/csharp.js"; -import { NamespaceSymbol } from "../symbols/namespace.js"; +import type { NamespaceSymbol } from "../symbols/namespace.js"; export class CSharpScope extends OutputScope { constructor( diff --git a/packages/csharp/src/scopes/factories.ts b/packages/csharp/src/scopes/factories.ts index f81a7befe..3ce1d8f41 100644 --- a/packages/csharp/src/scopes/factories.ts +++ b/packages/csharp/src/scopes/factories.ts @@ -1,6 +1,7 @@ -import { OutputScopeOptions, createScope } from "@alloy-js/core"; +import type { OutputScopeOptions } from "@alloy-js/core"; +import { createScope } from "@alloy-js/core"; -import { NamedTypeSymbol } from "../symbols/named-type.js"; +import type { NamedTypeSymbol } from "../symbols/named-type.js"; import { CSharpClassScope } from "./class.js"; import { useCSharpScope, useNamedTypeScope } from "./contexts.js"; import { CSharpMethodScope } from "./method.js"; diff --git a/packages/csharp/src/scopes/named-type.ts b/packages/csharp/src/scopes/named-type.ts index 2cb37f89b..48236e24a 100644 --- a/packages/csharp/src/scopes/named-type.ts +++ b/packages/csharp/src/scopes/named-type.ts @@ -1,8 +1,8 @@ import { type OutputScopeOptions } from "@alloy-js/core"; -import { NamedTypeSymbol } from "../symbols/named-type.js"; +import type { NamedTypeSymbol } from "../symbols/named-type.js"; import { CSharpScope } from "./csharp.js"; -import { CSharpSourceFileScope } from "./source-file.js"; +import type { CSharpSourceFileScope } from "./source-file.js"; /** * This scope contains NamedTypeSymbols for types that are declared in diff --git a/packages/csharp/src/scopes/namespace.ts b/packages/csharp/src/scopes/namespace.ts index 50362622d..a9538fe37 100644 --- a/packages/csharp/src/scopes/namespace.ts +++ b/packages/csharp/src/scopes/namespace.ts @@ -1,4 +1,5 @@ -import { OutputScope, createScope, useScope } from "@alloy-js/core"; +import type { OutputScope } from "@alloy-js/core"; +import { createScope, useScope } from "@alloy-js/core"; import type { NamespaceSymbol } from "../symbols/namespace.js"; import { CSharpNamedTypeScope } from "./named-type.js"; diff --git a/packages/csharp/src/scopes/source-file.ts b/packages/csharp/src/scopes/source-file.ts index 06b15b417..0dc238a23 100644 --- a/packages/csharp/src/scopes/source-file.ts +++ b/packages/csharp/src/scopes/source-file.ts @@ -1,6 +1,5 @@ +import type { OutputScope, OutputScopeOptions } from "@alloy-js/core"; import { - OutputScope, - OutputScopeOptions, shallowReactive, track, TrackOpTypes, @@ -9,9 +8,9 @@ import { useScope, } from "@alloy-js/core"; -import { NamespaceSymbol } from "../symbols/namespace.js"; +import type { NamespaceSymbol } from "../symbols/namespace.js"; import { CSharpLexicalScope } from "./lexical.js"; -import { CSharpNamespaceScope } from "./namespace.js"; +import type { CSharpNamespaceScope } from "./namespace.js"; export class CSharpSourceFileScope extends CSharpLexicalScope { #usings = shallowReactive>(new Set()); diff --git a/packages/csharp/src/symbols/csharp.ts b/packages/csharp/src/symbols/csharp.ts index d1b0bda43..df448a96e 100644 --- a/packages/csharp/src/symbols/csharp.ts +++ b/packages/csharp/src/symbols/csharp.ts @@ -1,11 +1,9 @@ +import type { Namekey, OutputSpace, OutputSymbolOptions } from "@alloy-js/core"; import { createSymbol, - Namekey, OutputDeclarationSpace, OutputMemberSpace, - OutputSpace, OutputSymbol, - OutputSymbolOptions, track, TrackOpTypes, trigger, @@ -13,9 +11,9 @@ import { watch, } from "@alloy-js/core"; -import { AccessModifiers, NonAccessModifiers } from "../modifiers.js"; +import type { AccessModifiers, NonAccessModifiers } from "../modifiers.js"; import type { CSharpScope } from "../scopes/csharp.js"; -import { NamespaceSymbol } from "./namespace.js"; +import type { NamespaceSymbol } from "./namespace.js"; export type DeclaredAccessibility = | "private" diff --git a/packages/csharp/src/symbols/factories.ts b/packages/csharp/src/symbols/factories.ts index aa1b72712..ceadfdf17 100644 --- a/packages/csharp/src/symbols/factories.ts +++ b/packages/csharp/src/symbols/factories.ts @@ -1,26 +1,28 @@ -import { - createSymbol, +import type { Namekey, NamePolicyGetter, - onCleanup, OutputSymbolOptions, - useBinder, } from "@alloy-js/core"; +import { createSymbol, onCleanup, useBinder } from "@alloy-js/core"; import { getGlobalNamespace } from "../contexts/global-namespace.js"; import { useNamespaceContext } from "../contexts/namespace.js"; -import { CSharpElements, useCSharpNamePolicy } from "../name-policy.js"; +import type { CSharpElements } from "../name-policy.js"; +import { useCSharpNamePolicy } from "../name-policy.js"; import { CSharpClassScope } from "../scopes/class.js"; import { useCSharpScope, useNamedTypeScope } from "../scopes/contexts.js"; -import { CSharpScope } from "../scopes/csharp.js"; +import type { CSharpScope } from "../scopes/csharp.js"; import { CSharpLexicalScope } from "../scopes/lexical.js"; import { CSharpMethodScope } from "../scopes/method.js"; import { CSharpNamedTypeScope } from "../scopes/named-type.js"; import { CSharpNamespaceScope } from "../scopes/namespace.js"; import { CSharpSourceFileScope } from "../scopes/source-file.js"; -import { CSharpSymbol, CSharpSymbolOptions } from "./csharp.js"; -import { MethodKinds, MethodSymbol } from "./method.js"; -import { NamedTypeSymbol, NamedTypeTypeKind } from "./named-type.js"; +import type { CSharpSymbolOptions } from "./csharp.js"; +import { CSharpSymbol } from "./csharp.js"; +import type { MethodKinds } from "./method.js"; +import { MethodSymbol } from "./method.js"; +import type { NamedTypeTypeKind } from "./named-type.js"; +import { NamedTypeSymbol } from "./named-type.js"; import { NamespaceSymbol } from "./namespace.js"; /** diff --git a/packages/csharp/src/symbols/method.ts b/packages/csharp/src/symbols/method.ts index 96a16313f..56f393828 100644 --- a/packages/csharp/src/symbols/method.ts +++ b/packages/csharp/src/symbols/method.ts @@ -1,6 +1,7 @@ -import { Namekey, OutputSpace } from "@alloy-js/core"; +import type { Namekey, OutputSpace } from "@alloy-js/core"; -import { CSharpSymbol, CSharpSymbolOptions } from "./csharp.js"; +import type { CSharpSymbolOptions } from "./csharp.js"; +import { CSharpSymbol } from "./csharp.js"; export type MethodKinds = "ordinary" | "constructor"; diff --git a/packages/csharp/src/symbols/named-type.ts b/packages/csharp/src/symbols/named-type.ts index 4de4dfd00..5d710e0cd 100644 --- a/packages/csharp/src/symbols/named-type.ts +++ b/packages/csharp/src/symbols/named-type.ts @@ -1,6 +1,8 @@ -import { Namekey, OutputSpace, createSymbol } from "@alloy-js/core"; +import type { Namekey, OutputSpace } from "@alloy-js/core"; +import { createSymbol } from "@alloy-js/core"; -import { CSharpSymbol, CSharpSymbolOptions } from "./csharp.js"; +import type { CSharpSymbolOptions } from "./csharp.js"; +import { CSharpSymbol } from "./csharp.js"; // represents a symbol from a .cs file. Class, enum, interface etc. diff --git a/packages/csharp/src/symbols/namespace.ts b/packages/csharp/src/symbols/namespace.ts index f22835c92..a79b60cc4 100644 --- a/packages/csharp/src/symbols/namespace.ts +++ b/packages/csharp/src/symbols/namespace.ts @@ -1,4 +1,5 @@ -import { Namekey, OutputSymbolOptions, createSymbol } from "@alloy-js/core"; +import type { Namekey, OutputSymbolOptions } from "@alloy-js/core"; +import { createSymbol } from "@alloy-js/core"; import { NamedTypeSymbol } from "./named-type.js"; diff --git a/packages/csharp/src/symbols/reference.tsx b/packages/csharp/src/symbols/reference.tsx index 6f8acb611..c53f45222 100644 --- a/packages/csharp/src/symbols/reference.tsx +++ b/packages/csharp/src/symbols/reference.tsx @@ -1,20 +1,14 @@ -import { - Children, - memo, - OutputSymbol, - Refkey, - resolve, - unresolvedRefkey, -} from "@alloy-js/core"; +import type { Children, OutputSymbol, Refkey } from "@alloy-js/core"; +import { memo, resolve, unresolvedRefkey } from "@alloy-js/core"; import { AccessExpression } from "#components/access-expression/access-expression.jsx"; import { useReferenceContext } from "../contexts/reference-context.js"; -import { CSharpScope } from "../scopes/csharp.js"; +import type { CSharpScope } from "../scopes/csharp.js"; import { CSharpNamespaceScope } from "../scopes/namespace.js"; import { useSourceFileScope } from "../scopes/source-file.js"; -import { CSharpSymbol } from "./csharp.js"; -import { NamespaceSymbol } from "./namespace.js"; +import type { CSharpSymbol } from "./csharp.js"; +import type { NamespaceSymbol } from "./namespace.js"; // converts a refkey to its fully qualified name // e.g. if refkey is for bar in enum type foo, and diff --git a/packages/csharp/testing/create-wrapper.test.tsx b/packages/csharp/testing/create-wrapper.test.tsx index 8c8ff8d23..f71c04157 100644 --- a/packages/csharp/testing/create-wrapper.test.tsx +++ b/packages/csharp/testing/create-wrapper.test.tsx @@ -1,4 +1,5 @@ -import { List, Refkey } from "@alloy-js/core"; +import type { Refkey } from "@alloy-js/core"; +import { List } from "@alloy-js/core"; import { d } from "@alloy-js/core/testing"; import { expect, it } from "vitest"; diff --git a/packages/devtools/src/hooks/devtools-app-state-context.ts b/packages/devtools/src/hooks/devtools-app-state-context.ts index fb89d585c..026e4e57a 100644 --- a/packages/devtools/src/hooks/devtools-app-state-context.ts +++ b/packages/devtools/src/hooks/devtools-app-state-context.ts @@ -1,6 +1,6 @@ import { createContext, useContext } from "react"; -import { useDevtoolsAppState } from "@/hooks/use-devtools-app-state"; +import type { useDevtoolsAppState } from "@/hooks/use-devtools-app-state"; export type DevtoolsAppState = ReturnType; diff --git a/packages/docs/scripts/build-json.ts b/packages/docs/scripts/build-json.ts index 423cab9c9..b3210d4ad 100644 --- a/packages/docs/scripts/build-json.ts +++ b/packages/docs/scripts/build-json.ts @@ -8,17 +8,19 @@ import { type OutputDirectory, } from "@alloy-js/core"; import { Output, SourceDirectory } from "@alloy-js/core/stc"; -import { +import type { ApiClass, ApiEnum, ApiFunction, ApiInterface, ApiItem, - ApiItemKind, - ApiModel, ApiPackage, ApiTypeAlias, ApiVariable, +} from "@microsoft/api-extractor-model"; +import { + ApiItemKind, + ApiModel, ExcerptTokenKind, } from "@microsoft/api-extractor-model"; diff --git a/packages/docs/scripts/components/DocDeclaration.ts b/packages/docs/scripts/components/DocDeclaration.ts index 0e6787007..02ef45008 100644 --- a/packages/docs/scripts/components/DocDeclaration.ts +++ b/packages/docs/scripts/components/DocDeclaration.ts @@ -1,5 +1,5 @@ +import type { BasicScope } from "@alloy-js/core"; import { - BasicScope, refkey, SourceFileContext, useContext, diff --git a/packages/docs/scripts/components/Excerpt.ts b/packages/docs/scripts/components/Excerpt.ts index b1de365f4..6cb89578a 100644 --- a/packages/docs/scripts/components/Excerpt.ts +++ b/packages/docs/scripts/components/Excerpt.ts @@ -1,6 +1,6 @@ import { refkey, type Children } from "@alloy-js/core"; +import type { ApiItem } from "@microsoft/api-extractor-model"; import { - ApiItem, ExcerptTokenKind, type Excerpt as AEExcerpt, } from "@microsoft/api-extractor-model"; diff --git a/packages/docs/scripts/components/InterfaceMembers.ts b/packages/docs/scripts/components/InterfaceMembers.ts index b1bc37d42..f3252d80f 100644 --- a/packages/docs/scripts/components/InterfaceMembers.ts +++ b/packages/docs/scripts/components/InterfaceMembers.ts @@ -1,14 +1,16 @@ import { code, join, type Children } from "@alloy-js/core"; -import { +import type { ApiCallSignature, ApiConstructor, ApiFunction, ApiIndexSignature, ApiItem, - ApiItemKind, ApiMethod, ApiProperty, ApiPropertySignature, +} from "@microsoft/api-extractor-model"; +import { + ApiItemKind, ApiProtectedMixin, type ApiInterface, } from "@microsoft/api-extractor-model"; diff --git a/packages/docs/scripts/components/TsDoc.ts b/packages/docs/scripts/components/TsDoc.ts index c0cd7ffe4..f85e55cdd 100644 --- a/packages/docs/scripts/components/TsDoc.ts +++ b/packages/docs/scripts/components/TsDoc.ts @@ -6,7 +6,7 @@ import { type Children, } from "@alloy-js/core"; import { type ApiItem } from "@microsoft/api-extractor-model"; -import { +import type { DocBlock, DocCodeSpan, DocDeclarationReference, @@ -14,12 +14,11 @@ import { DocFencedCode, DocLinkTag, DocNode, - DocNodeKind, - DocNodeTransforms, DocParagraph, DocPlainText, DocSection, } from "@microsoft/tsdoc"; +import { DocNodeKind, DocNodeTransforms } from "@microsoft/tsdoc"; import type { DeclarationReference } from "@microsoft/tsdoc/lib-commonjs/beta/DeclarationReference.js"; import { ApiModelContext } from "../contexts/api-model.js"; diff --git a/packages/docs/scripts/components/type/TypeDoc.ts b/packages/docs/scripts/components/type/TypeDoc.ts index 55690bbd5..198dd5304 100644 --- a/packages/docs/scripts/components/type/TypeDoc.ts +++ b/packages/docs/scripts/components/type/TypeDoc.ts @@ -1,8 +1,5 @@ -import { - ApiClass, - ApiInterface, - ApiItemKind, -} from "@microsoft/api-extractor-model"; +import type { ApiClass, ApiInterface } from "@microsoft/api-extractor-model"; +import { ApiItemKind } from "@microsoft/api-extractor-model"; import type { TypeApi } from "../../build-json.js"; import { cleanExcerpt } from "../../utils.js"; diff --git a/packages/docs/scripts/components/type/TypeMembers.ts b/packages/docs/scripts/components/type/TypeMembers.ts index 1c3f5c8d5..9392af335 100644 --- a/packages/docs/scripts/components/type/TypeMembers.ts +++ b/packages/docs/scripts/components/type/TypeMembers.ts @@ -1,6 +1,6 @@ import { code, mapJoin, type Children } from "@alloy-js/core"; +import type { ApiClass } from "@microsoft/api-extractor-model"; import { - ApiClass, ApiItemKind, type ApiInterface, type HeritageType, diff --git a/packages/docs/scripts/contexts/api-model.ts b/packages/docs/scripts/contexts/api-model.ts index 71997d51f..7c2209293 100644 --- a/packages/docs/scripts/contexts/api-model.ts +++ b/packages/docs/scripts/contexts/api-model.ts @@ -1,4 +1,4 @@ import { createContext, type ComponentContext } from "@alloy-js/core"; -import { ApiModel } from "@microsoft/api-extractor-model"; +import type { ApiModel } from "@microsoft/api-extractor-model"; export const ApiModelContext: ComponentContext = createContext(); diff --git a/packages/go/src/builtins/fmt/fmt.ts b/packages/go/src/builtins/fmt/fmt.ts index a6e64e114..cb1d6eaa9 100644 --- a/packages/go/src/builtins/fmt/fmt.ts +++ b/packages/go/src/builtins/fmt/fmt.ts @@ -1,4 +1,5 @@ -import { createModule, StrictDescriptor } from "../../create-module.js"; +import type { StrictDescriptor } from "../../create-module.js"; +import { createModule } from "../../create-module.js"; export const fmt = createModule( "fmt", diff --git a/packages/go/src/builtins/io/io.ts b/packages/go/src/builtins/io/io.ts index 1a439ceb1..c8a678136 100644 --- a/packages/go/src/builtins/io/io.ts +++ b/packages/go/src/builtins/io/io.ts @@ -1,4 +1,5 @@ -import { createModule, StrictDescriptor } from "../../create-module.js"; +import type { StrictDescriptor } from "../../create-module.js"; +import { createModule } from "../../create-module.js"; export const io = createModule( "io", diff --git a/packages/go/src/builtins/net/net.ts b/packages/go/src/builtins/net/net.ts index bf24da592..699adca01 100644 --- a/packages/go/src/builtins/net/net.ts +++ b/packages/go/src/builtins/net/net.ts @@ -1,4 +1,5 @@ -import { createModule, StrictDescriptor } from "../../create-module.js"; +import type { StrictDescriptor } from "../../create-module.js"; +import { createModule } from "../../create-module.js"; import { ioRef } from "../io/io.js"; export const net = createModule( diff --git a/packages/go/src/builtins/time/time.ts b/packages/go/src/builtins/time/time.ts index e8d99553f..86f555e9a 100644 --- a/packages/go/src/builtins/time/time.ts +++ b/packages/go/src/builtins/time/time.ts @@ -1,4 +1,5 @@ -import { createModule, StrictDescriptor } from "../../create-module.js"; +import type { StrictDescriptor } from "../../create-module.js"; +import { createModule } from "../../create-module.js"; export const time = createModule( "time", diff --git a/packages/go/src/components/ImportStatement.tsx b/packages/go/src/components/ImportStatement.tsx index 249d136b0..7ca77a9bd 100644 --- a/packages/go/src/components/ImportStatement.tsx +++ b/packages/go/src/components/ImportStatement.tsx @@ -2,8 +2,8 @@ import { computed, For, Indent, memo } from "@alloy-js/core"; import { basename, join, sep } from "pathe"; import { useModule } from "../scopes/module.js"; -import { ImportRecords } from "../scopes/source-file.js"; -import { GoSymbol } from "../symbols/go.js"; +import type { ImportRecords } from "../scopes/source-file.js"; +import type { GoSymbol } from "../symbols/go.js"; export interface ImportStatementProps { path: string; diff --git a/packages/go/src/components/ModuleDirectory.tsx b/packages/go/src/components/ModuleDirectory.tsx index 722128d53..4762077d8 100644 --- a/packages/go/src/components/ModuleDirectory.tsx +++ b/packages/go/src/components/ModuleDirectory.tsx @@ -1,4 +1,5 @@ -import { Children, Scope, SourceDirectory } from "@alloy-js/core"; +import type { Children } from "@alloy-js/core"; +import { Scope, SourceDirectory } from "@alloy-js/core"; import { createGoModuleScope } from "../scopes/module.js"; diff --git a/packages/go/src/components/Reference.tsx b/packages/go/src/components/Reference.tsx index 0fe78e547..2cef89cf3 100644 --- a/packages/go/src/components/Reference.tsx +++ b/packages/go/src/components/Reference.tsx @@ -1,4 +1,5 @@ -import { computed, emitSymbol, Refkey } from "@alloy-js/core"; +import type { Refkey } from "@alloy-js/core"; +import { computed, emitSymbol } from "@alloy-js/core"; import { ref } from "../symbols/index.js"; diff --git a/packages/go/src/components/SourceDirectory.tsx b/packages/go/src/components/SourceDirectory.tsx index 82c6fcf69..ba770d8c5 100644 --- a/packages/go/src/components/SourceDirectory.tsx +++ b/packages/go/src/components/SourceDirectory.tsx @@ -1,6 +1,6 @@ +import type { SourceDirectoryProps as CoreSourceDirectoryProps } from "@alloy-js/core"; import { SourceDirectory as CoreSourceDirectory, - SourceDirectoryProps as CoreSourceDirectoryProps, Scope, SourceDirectoryContext, useContext, diff --git a/packages/go/src/components/function/function.test.tsx b/packages/go/src/components/function/function.test.tsx index a9a2788c7..7d4219096 100644 --- a/packages/go/src/components/function/function.test.tsx +++ b/packages/go/src/components/function/function.test.tsx @@ -1,4 +1,5 @@ -import { Children, code, Output, refkey, Refkey, render } from "@alloy-js/core"; +import type { Children, Refkey } from "@alloy-js/core"; +import { code, Output, refkey, render } from "@alloy-js/core"; import { describe, expect, it } from "vitest"; import { TestPackage } from "../../../test/utils.js"; diff --git a/packages/go/src/components/function/function.tsx b/packages/go/src/components/function/function.tsx index 493be25bd..49d01a237 100644 --- a/packages/go/src/components/function/function.tsx +++ b/packages/go/src/components/function/function.tsx @@ -1,6 +1,6 @@ +import type { Children, Namekey, Refkey } from "@alloy-js/core"; import { Block, - Children, createSymbolSlot, Declaration, DeclarationContext, @@ -8,9 +8,7 @@ import { For, Indent, Name, - Namekey, onCleanup, - Refkey, Scope, Show, useContext, @@ -24,18 +22,14 @@ import { createParameterSymbol, } from "../../symbols/factories.js"; import { FunctionSymbol } from "../../symbols/function.js"; -import { GoSymbol } from "../../symbols/go.js"; +import type { GoSymbol } from "../../symbols/go.js"; import { NamedTypeSymbol } from "../../symbols/named-type.js"; -import { TypeParameterSymbol } from "../../symbols/type-parameter.js"; +import type { TypeParameterSymbol } from "../../symbols/type-parameter.js"; import { LineComment } from "../doc/comment.jsx"; -import { - FunctionParameterProps, - FunctionParameters, -} from "../parameters/parameters.jsx"; -import { - TypeParameterProps, - TypeParameters, -} from "../parameters/typeparameters.jsx"; +import type { FunctionParameterProps } from "../parameters/parameters.jsx"; +import { FunctionParameters } from "../parameters/parameters.jsx"; +import type { TypeParameterProps } from "../parameters/typeparameters.jsx"; +import { TypeParameters } from "../parameters/typeparameters.jsx"; // properties for creating a function export interface FunctionProps { diff --git a/packages/go/src/components/interface/declaration.tsx b/packages/go/src/components/interface/declaration.tsx index be01285d4..d16e9ace9 100644 --- a/packages/go/src/components/interface/declaration.tsx +++ b/packages/go/src/components/interface/declaration.tsx @@ -1,13 +1,11 @@ +import type { Children, Namekey, Refkey } from "@alloy-js/core"; import { Block, - Children, Declaration, DeclarationContext, effect, For, memo, - Namekey, - Refkey, Scope, Show, takeSymbols, @@ -25,15 +23,14 @@ import { createAnonymousTypeSymbol, createInterfaceMemberSymbol, } from "../../symbols/factories.js"; -import { GoSymbol } from "../../symbols/go.js"; -import { NamedTypeSymbol } from "../../symbols/named-type.js"; +import type { GoSymbol } from "../../symbols/go.js"; +import type { NamedTypeSymbol } from "../../symbols/named-type.js"; import { LineComment } from "../doc/comment.js"; import { Name } from "../Name.js"; -import { - FunctionParameterProps, - FunctionParameters, -} from "../parameters/parameters.js"; -import { TypeDeclaration, TypeDeclarationProps } from "../type/declaration.jsx"; +import type { FunctionParameterProps } from "../parameters/parameters.js"; +import { FunctionParameters } from "../parameters/parameters.js"; +import type { TypeDeclarationProps } from "../type/declaration.jsx"; +import { TypeDeclaration } from "../type/declaration.jsx"; /** * Properties for creating an interface declaration. diff --git a/packages/go/src/components/parameters/parameters.tsx b/packages/go/src/components/parameters/parameters.tsx index 45ce7b6b6..fa481e671 100644 --- a/packages/go/src/components/parameters/parameters.tsx +++ b/packages/go/src/components/parameters/parameters.tsx @@ -1,12 +1,5 @@ -import { - Children, - createSymbolSlot, - Declaration, - For, - Indent, - Namekey, - Refkey, -} from "@alloy-js/core"; +import type { Children, Namekey, Refkey } from "@alloy-js/core"; +import { createSymbolSlot, Declaration, For, Indent } from "@alloy-js/core"; import { createParameterSymbol } from "../../symbols/factories.js"; import { Name } from "../Name.jsx"; diff --git a/packages/go/src/components/parameters/typeparameters.tsx b/packages/go/src/components/parameters/typeparameters.tsx index 47035a0c4..5912f6c2c 100644 --- a/packages/go/src/components/parameters/typeparameters.tsx +++ b/packages/go/src/components/parameters/typeparameters.tsx @@ -1,12 +1,5 @@ -import { - Children, - For, - Indent, - MemberDeclaration, - MemberName, - Namekey, - Refkey, -} from "@alloy-js/core"; +import type { Children, Namekey, Refkey } from "@alloy-js/core"; +import { For, Indent, MemberDeclaration, MemberName } from "@alloy-js/core"; import { createTypeParameterSymbol } from "../../symbols/factories.js"; diff --git a/packages/go/src/components/pointer/pointer.tsx b/packages/go/src/components/pointer/pointer.tsx index 47b87ee5a..f431e397a 100644 --- a/packages/go/src/components/pointer/pointer.tsx +++ b/packages/go/src/components/pointer/pointer.tsx @@ -1,4 +1,4 @@ -import { Children } from "@alloy-js/core"; +import type { Children } from "@alloy-js/core"; export interface PointerProps { children: Children; diff --git a/packages/go/src/components/struct/declaration.tsx b/packages/go/src/components/struct/declaration.tsx index 6c9951a3b..5858bee80 100644 --- a/packages/go/src/components/struct/declaration.tsx +++ b/packages/go/src/components/struct/declaration.tsx @@ -1,13 +1,11 @@ +import type { Children, Namekey, Refkey } from "@alloy-js/core"; import { Block, - Children, computed, Declaration, DeclarationContext, effect, memo, - Namekey, - Refkey, Scope, Show, takeSymbols, @@ -23,11 +21,12 @@ import { createAnonymousTypeSymbol, createStructMemberSymbol, } from "../../symbols/factories.js"; -import { GoSymbol } from "../../symbols/go.js"; -import { NamedTypeSymbol } from "../../symbols/named-type.js"; +import type { GoSymbol } from "../../symbols/go.js"; +import type { NamedTypeSymbol } from "../../symbols/named-type.js"; import { LineComment } from "../doc/comment.js"; import { Name } from "../Name.js"; -import { TypeDeclaration, TypeDeclarationProps } from "../type/declaration.jsx"; +import type { TypeDeclarationProps } from "../type/declaration.jsx"; +import { TypeDeclaration } from "../type/declaration.jsx"; /** * Properties for creating a struct declaration. diff --git a/packages/go/src/components/type/declaration.tsx b/packages/go/src/components/type/declaration.tsx index cdd4eef7d..552329874 100644 --- a/packages/go/src/components/type/declaration.tsx +++ b/packages/go/src/components/type/declaration.tsx @@ -1,14 +1,16 @@ -import { +import type { Children, ComponentContext, + Namekey, + Refkey, +} from "@alloy-js/core"; +import { createContext, createSymbol, Declaration, Indent, List, Name, - Namekey, - Refkey, Scope, Show, useContext, @@ -16,13 +18,11 @@ import { import { createNamedTypeScope } from "../../scopes/factories.js"; import { createTypeSymbol } from "../../symbols/factories.js"; -import { NamedTypeSymbol } from "../../symbols/named-type.js"; +import type { NamedTypeSymbol } from "../../symbols/named-type.js"; import { TypeParameterSymbol } from "../../symbols/type-parameter.js"; import { LineComment } from "../doc/comment.js"; -import { - TypeParameterProps, - TypeParameters, -} from "../parameters/typeparameters.jsx"; +import type { TypeParameterProps } from "../parameters/typeparameters.jsx"; +import { TypeParameters } from "../parameters/typeparameters.jsx"; export interface TypeDeclarationGroupProps { children: Children; diff --git a/packages/go/src/components/var/declaration.tsx b/packages/go/src/components/var/declaration.tsx index 5682c8ecd..83c4fcd91 100644 --- a/packages/go/src/components/var/declaration.tsx +++ b/packages/go/src/components/var/declaration.tsx @@ -1,6 +1,10 @@ -import { +import type { Children, ComponentContext, + Namekey, + Refkey, +} from "@alloy-js/core"; +import { computed, createContext, Declaration, @@ -8,8 +12,6 @@ import { List, memo, Name, - Namekey, - Refkey, Show, useContext, } from "@alloy-js/core"; diff --git a/packages/go/src/context/package.ts b/packages/go/src/context/package.ts index 68f4114ea..317593156 100644 --- a/packages/go/src/context/package.ts +++ b/packages/go/src/context/package.ts @@ -1,6 +1,7 @@ -import { ComponentContext, createContext, useContext } from "@alloy-js/core"; +import type { ComponentContext } from "@alloy-js/core"; +import { createContext, useContext } from "@alloy-js/core"; -import { PackageSymbol } from "../symbols/package.js"; +import type { PackageSymbol } from "../symbols/package.js"; interface PackageContext { symbol: PackageSymbol; diff --git a/packages/go/src/create-module.test.tsx b/packages/go/src/create-module.test.tsx index d4b1c35d5..a95b2b7c2 100644 --- a/packages/go/src/create-module.test.tsx +++ b/packages/go/src/create-module.test.tsx @@ -5,7 +5,8 @@ import { TestPackage } from "#test/utils.jsx"; import { fmt } from "./builtins/fmt/fmt.js"; import { VariableDeclaration } from "./components/index.js"; -import { createModule, StrictDescriptor } from "./create-module.js"; +import type { StrictDescriptor } from "./create-module.js"; +import { createModule } from "./create-module.js"; it("Can reference types which haven't been created yet", () => { const std1 = createModule("std1", { diff --git a/packages/go/src/create-module.ts b/packages/go/src/create-module.ts index 13e82101d..0d369da0f 100644 --- a/packages/go/src/create-module.ts +++ b/packages/go/src/create-module.ts @@ -1,7 +1,6 @@ +import type { Binder, LibrarySymbolReference } from "@alloy-js/core"; import { - Binder, createSymbol, - LibrarySymbolReference, namekey, refkey, REFKEYABLE, diff --git a/packages/go/src/name-policy.ts b/packages/go/src/name-policy.ts index 7c83d3b99..1f66501be 100644 --- a/packages/go/src/name-policy.ts +++ b/packages/go/src/name-policy.ts @@ -1,4 +1,5 @@ -import { createNamePolicy, NamePolicy, useNamePolicy } from "@alloy-js/core"; +import type { NamePolicy } from "@alloy-js/core"; +import { createNamePolicy, useNamePolicy } from "@alloy-js/core"; export type GoElements = | "parameter" diff --git a/packages/go/src/scopes/factories.ts b/packages/go/src/scopes/factories.ts index 03c71db31..2ba3619f0 100644 --- a/packages/go/src/scopes/factories.ts +++ b/packages/go/src/scopes/factories.ts @@ -1,6 +1,7 @@ -import { OutputScopeOptions, createScope } from "@alloy-js/core"; +import type { OutputScopeOptions } from "@alloy-js/core"; +import { createScope } from "@alloy-js/core"; -import { NamedTypeSymbol } from "../symbols/named-type.js"; +import type { NamedTypeSymbol } from "../symbols/named-type.js"; import { useGoScope } from "./contexts.js"; import { GoFunctionScope } from "./function.js"; import { GoNamedTypeScope } from "./named-type.js"; diff --git a/packages/go/src/scopes/go.ts b/packages/go/src/scopes/go.ts index 27bb318eb..6feaeea0c 100644 --- a/packages/go/src/scopes/go.ts +++ b/packages/go/src/scopes/go.ts @@ -1,6 +1,7 @@ -import { OutputScope, OutputScopeOptions } from "@alloy-js/core"; +import type { OutputScopeOptions } from "@alloy-js/core"; +import { OutputScope } from "@alloy-js/core"; -import { PackageSymbol } from "../symbols/package.js"; +import type { PackageSymbol } from "../symbols/package.js"; export class GoScope extends OutputScope { constructor( diff --git a/packages/go/src/scopes/module.ts b/packages/go/src/scopes/module.ts index 20a6ea17c..bc4d173d0 100644 --- a/packages/go/src/scopes/module.ts +++ b/packages/go/src/scopes/module.ts @@ -1,4 +1,5 @@ -import { OutputScope, createScope, useScope } from "@alloy-js/core"; +import type { OutputScope } from "@alloy-js/core"; +import { createScope, useScope } from "@alloy-js/core"; import { GoScope } from "./go.js"; diff --git a/packages/go/src/scopes/named-type.ts b/packages/go/src/scopes/named-type.ts index 6e206575a..8a8372c77 100644 --- a/packages/go/src/scopes/named-type.ts +++ b/packages/go/src/scopes/named-type.ts @@ -1,9 +1,9 @@ import { type OutputScopeOptions } from "@alloy-js/core"; -import { NamedTypeSymbol } from "../symbols/named-type.js"; +import type { NamedTypeSymbol } from "../symbols/named-type.js"; import { GoScope } from "./go.js"; -import { GoModuleScope } from "./module.js"; -import { GoSourceFileScope } from "./source-file.js"; +import type { GoModuleScope } from "./module.js"; +import type { GoSourceFileScope } from "./source-file.js"; /** * This scope contains NamedTypeSymbols for types that are declared in diff --git a/packages/go/src/scopes/package.ts b/packages/go/src/scopes/package.ts index 44d34396d..7d85ee5a6 100644 --- a/packages/go/src/scopes/package.ts +++ b/packages/go/src/scopes/package.ts @@ -1,4 +1,5 @@ -import { OutputScope, createScope, useScope } from "@alloy-js/core"; +import type { OutputScope } from "@alloy-js/core"; +import { createScope, useScope } from "@alloy-js/core"; import type { PackageSymbol } from "../symbols/package.js"; import { GoModuleScope } from "./module.js"; diff --git a/packages/go/src/scopes/source-file.ts b/packages/go/src/scopes/source-file.ts index 1bdcdb396..6f21c735b 100644 --- a/packages/go/src/scopes/source-file.ts +++ b/packages/go/src/scopes/source-file.ts @@ -1,15 +1,10 @@ -import { - OutputScope, - OutputScopeOptions, - createSymbol, - shallowReactive, - useScope, -} from "@alloy-js/core"; +import type { OutputScope, OutputScopeOptions } from "@alloy-js/core"; +import { createSymbol, shallowReactive, useScope } from "@alloy-js/core"; import { GoSymbol } from "../symbols/go.js"; -import { PackageSymbol } from "../symbols/package.js"; +import type { PackageSymbol } from "../symbols/package.js"; import { GoLexicalScope } from "./lexical.js"; -import { GoPackageScope } from "./package.js"; +import type { GoPackageScope } from "./package.js"; export type ImportRecords = Map; diff --git a/packages/go/src/symbols/factories.ts b/packages/go/src/symbols/factories.ts index 404ff19c3..e0f4f9f1e 100644 --- a/packages/go/src/symbols/factories.ts +++ b/packages/go/src/symbols/factories.ts @@ -1,7 +1,9 @@ -import { createSymbol, Namekey, NamePolicyGetter } from "@alloy-js/core"; +import type { Namekey, NamePolicyGetter } from "@alloy-js/core"; +import { createSymbol } from "@alloy-js/core"; import { join } from "pathe"; -import { GoElements, useGoNamePolicy } from "../name-policy.js"; +import type { GoElements } from "../name-policy.js"; +import { useGoNamePolicy } from "../name-policy.js"; import { useGoScope, useNamedTypeScope } from "../scopes/contexts.js"; import { GoFunctionScope } from "../scopes/function.js"; import { GoLexicalScope } from "../scopes/lexical.js"; @@ -9,12 +11,13 @@ import { useModule } from "../scopes/module.js"; import { GoNamedTypeScope } from "../scopes/named-type.js"; import { useEnclosingPackageScope } from "../scopes/package.js"; import { FunctionSymbol } from "./function.js"; -import { GoSymbol, GoSymbolOptions } from "./go.js"; -import { - NamedTypeSymbol, +import type { GoSymbolOptions } from "./go.js"; +import { GoSymbol } from "./go.js"; +import type { NamedTypeSymbolOptions, NamedTypeTypeKind, } from "./named-type.js"; +import { NamedTypeSymbol } from "./named-type.js"; import { PackageSymbol } from "./package.js"; /** diff --git a/packages/go/src/symbols/function.ts b/packages/go/src/symbols/function.ts index 4b68dd33a..6b144cffa 100644 --- a/packages/go/src/symbols/function.ts +++ b/packages/go/src/symbols/function.ts @@ -1,14 +1,9 @@ -import { - Namekey, - OutputSpace, - track, - TrackOpTypes, - trigger, - TriggerOpTypes, -} from "@alloy-js/core"; +import type { Namekey, OutputSpace } from "@alloy-js/core"; +import { track, TrackOpTypes, trigger, TriggerOpTypes } from "@alloy-js/core"; -import { GoSymbol, GoSymbolOptions } from "./go.js"; -import { NamedTypeSymbol } from "./named-type.js"; +import type { GoSymbolOptions } from "./go.js"; +import { GoSymbol } from "./go.js"; +import type { NamedTypeSymbol } from "./named-type.js"; /** * A symbol for a function in Go, including receivers. diff --git a/packages/go/src/symbols/go.ts b/packages/go/src/symbols/go.ts index ac4a6d364..d74955668 100644 --- a/packages/go/src/symbols/go.ts +++ b/packages/go/src/symbols/go.ts @@ -1,15 +1,13 @@ +import type { Namekey, OutputSpace, OutputSymbolOptions } from "@alloy-js/core"; import { - Namekey, OutputDeclarationSpace, OutputMemberSpace, - OutputSpace, OutputSymbol, - OutputSymbolOptions, createSymbol, } from "@alloy-js/core"; -import { GoScope } from "../scopes/go.js"; -import { PackageSymbol } from "./package.js"; +import type { GoScope } from "../scopes/go.js"; +import type { PackageSymbol } from "./package.js"; /** * Options for creating a Go symbol. diff --git a/packages/go/src/symbols/named-type.ts b/packages/go/src/symbols/named-type.ts index f4ead3f14..2a1eb1eda 100644 --- a/packages/go/src/symbols/named-type.ts +++ b/packages/go/src/symbols/named-type.ts @@ -1,14 +1,14 @@ +import type { Namekey, OutputSpace } from "@alloy-js/core"; import { createSymbol, - Namekey, - OutputSpace, track, TrackOpTypes, trigger, TriggerOpTypes, } from "@alloy-js/core"; -import { GoSymbol, GoSymbolOptions } from "./go.js"; +import type { GoSymbolOptions } from "./go.js"; +import { GoSymbol } from "./go.js"; // represents a symbol from a .go file. Struct, interface, etc. export type NamedTypeTypeKind = diff --git a/packages/go/src/symbols/package.ts b/packages/go/src/symbols/package.ts index 1ec07eea7..83bff2ce3 100644 --- a/packages/go/src/symbols/package.ts +++ b/packages/go/src/symbols/package.ts @@ -1,4 +1,5 @@ -import { OutputSymbolOptions, createSymbol } from "@alloy-js/core"; +import type { OutputSymbolOptions } from "@alloy-js/core"; +import { createSymbol } from "@alloy-js/core"; import { join } from "pathe"; import { NamedTypeSymbol } from "./named-type.js"; diff --git a/packages/go/src/symbols/reference.ts b/packages/go/src/symbols/reference.ts index 86ac6650a..63a611d55 100644 --- a/packages/go/src/symbols/reference.ts +++ b/packages/go/src/symbols/reference.ts @@ -1,9 +1,10 @@ -import { memo, OutputSymbol, Refkey, resolve } from "@alloy-js/core"; +import type { OutputSymbol, Refkey } from "@alloy-js/core"; +import { memo, resolve } from "@alloy-js/core"; -import { GoScope } from "../scopes/go.js"; +import type { GoScope } from "../scopes/go.js"; import { GoPackageScope } from "../scopes/package.js"; import { useSourceFileScope } from "../scopes/source-file.js"; -import { GoSymbol } from "./go.js"; +import type { GoSymbol } from "./go.js"; import { PackageSymbol } from "./package.js"; function closestPackageScope( diff --git a/packages/go/src/symbols/type-parameter.ts b/packages/go/src/symbols/type-parameter.ts index d3f3541c9..69e52ec68 100644 --- a/packages/go/src/symbols/type-parameter.ts +++ b/packages/go/src/symbols/type-parameter.ts @@ -1,6 +1,7 @@ -import { Children, Namekey, OutputSpace } from "@alloy-js/core"; +import type { Children, Namekey, OutputSpace } from "@alloy-js/core"; -import { GoSymbol, GoSymbolOptions } from "./go.js"; +import type { GoSymbolOptions } from "./go.js"; +import { GoSymbol } from "./go.js"; interface TypeParameterSymbolOptions extends GoSymbolOptions { constraint?: Children; diff --git a/packages/go/test/utils.tsx b/packages/go/test/utils.tsx index 73dd4de93..b6524ee31 100644 --- a/packages/go/test/utils.tsx +++ b/packages/go/test/utils.tsx @@ -1,4 +1,5 @@ -import { Children, Output } from "@alloy-js/core"; +import type { Children } from "@alloy-js/core"; +import { Output } from "@alloy-js/core"; import * as go from "../src/index.js"; diff --git a/packages/java/src/components/Annotation.tsx b/packages/java/src/components/Annotation.tsx index 35b76f020..29e0a1d74 100644 --- a/packages/java/src/components/Annotation.tsx +++ b/packages/java/src/components/Annotation.tsx @@ -1,5 +1,5 @@ import { Match, Switch } from "@alloy-js/core"; -import { Children } from "@alloy-js/core/jsx-runtime"; +import type { Children } from "@alloy-js/core/jsx-runtime"; import { NamedArgumentList } from "./NamedArgumentList.jsx"; diff --git a/packages/java/src/components/ArgumentList.tsx b/packages/java/src/components/ArgumentList.tsx index 25d24087d..815ba5104 100644 --- a/packages/java/src/components/ArgumentList.tsx +++ b/packages/java/src/components/ArgumentList.tsx @@ -1,4 +1,5 @@ -import { Children, For, Indent } from "@alloy-js/core"; +import type { Children } from "@alloy-js/core"; +import { For, Indent } from "@alloy-js/core"; export interface ArgumentListProps { args?: Children[]; diff --git a/packages/java/src/components/Class.tsx b/packages/java/src/components/Class.tsx index 98ed131db..8eec2c6cc 100644 --- a/packages/java/src/components/Class.tsx +++ b/packages/java/src/components/Class.tsx @@ -1,12 +1,16 @@ -import { Block, Children, Show } from "@alloy-js/core"; +import type { Children } from "@alloy-js/core"; +import { Block, Show } from "@alloy-js/core"; -import { CommonDeclarationProps, Declaration } from "./Declaration.js"; +import type { CommonDeclarationProps } from "./Declaration.js"; +import { Declaration } from "./Declaration.js"; import { ExtendsClause } from "./ExtendsClause.js"; import { ImplementsClause } from "./ImplementsClause.js"; import { LexicalScope } from "./LexicalScope.jsx"; -import { ModifierProps, Modifiers } from "./Modifiers.jsx"; +import type { ModifierProps } from "./Modifiers.jsx"; +import { Modifiers } from "./Modifiers.jsx"; import { Name } from "./Name.js"; -import { TypeParameters, TypeParametersProps } from "./TypeParameters.jsx"; +import type { TypeParametersProps } from "./TypeParameters.jsx"; +import { TypeParameters } from "./TypeParameters.jsx"; export interface ClassProps extends CommonDeclarationProps, ModifierProps, TypeParametersProps { diff --git a/packages/java/src/components/Constructor.tsx b/packages/java/src/components/Constructor.tsx index dfcd85c2f..61b4e1826 100644 --- a/packages/java/src/components/Constructor.tsx +++ b/packages/java/src/components/Constructor.tsx @@ -1,7 +1,8 @@ import { Block } from "@alloy-js/core"; -import { Children } from "@alloy-js/core/jsx-runtime"; +import type { Children } from "@alloy-js/core/jsx-runtime"; -import { ModifierProps, Modifiers } from "./Modifiers.jsx"; +import type { ModifierProps } from "./Modifiers.jsx"; +import { Modifiers } from "./Modifiers.jsx"; import { Name } from "./Name.js"; import { Parameters } from "./Parameters.js"; diff --git a/packages/java/src/components/Declaration.tsx b/packages/java/src/components/Declaration.tsx index a2b71c57b..c8ed0bb00 100644 --- a/packages/java/src/components/Declaration.tsx +++ b/packages/java/src/components/Declaration.tsx @@ -1,12 +1,8 @@ -import { - Children, - Declaration as CoreDeclaration, - createSymbol, - Namekey, - Refkey, -} from "@alloy-js/core"; +import type { Children, Namekey, Refkey } from "@alloy-js/core"; +import { Declaration as CoreDeclaration, createSymbol } from "@alloy-js/core"; -import { JavaElements, useJavaNamePolicy } from "../name-policy.js"; +import type { JavaElements } from "../name-policy.js"; +import { useJavaNamePolicy } from "../name-policy.js"; import { JavaOutputSymbol } from "../symbols/java-output-symbol.js"; import { useLexicalScope } from "../utils.js"; diff --git a/packages/java/src/components/Enum.tsx b/packages/java/src/components/Enum.tsx index c3490b83c..a50099c2c 100644 --- a/packages/java/src/components/Enum.tsx +++ b/packages/java/src/components/Enum.tsx @@ -1,11 +1,14 @@ -import { Block, Children, List } from "@alloy-js/core"; +import type { Children } from "@alloy-js/core"; +import { Block, List } from "@alloy-js/core"; import { useJavaNamePolicy } from "../name-policy.js"; import { ArgumentList } from "./ArgumentList.jsx"; -import { CommonDeclarationProps, Declaration } from "./Declaration.js"; +import type { CommonDeclarationProps } from "./Declaration.js"; +import { Declaration } from "./Declaration.js"; import { ImplementsClause } from "./ImplementsClause.jsx"; import { LexicalScope } from "./LexicalScope.jsx"; -import { ModifierProps, Modifiers } from "./Modifiers.jsx"; +import type { ModifierProps } from "./Modifiers.jsx"; +import { Modifiers } from "./Modifiers.jsx"; import { Name } from "./Name.js"; export interface EnumProps extends CommonDeclarationProps, ModifierProps { diff --git a/packages/java/src/components/ExtendsClause.tsx b/packages/java/src/components/ExtendsClause.tsx index 15d947b92..57616fdf6 100644 --- a/packages/java/src/components/ExtendsClause.tsx +++ b/packages/java/src/components/ExtendsClause.tsx @@ -1,4 +1,5 @@ -import { Children, List, Show } from "@alloy-js/core"; +import type { Children } from "@alloy-js/core"; +import { List, Show } from "@alloy-js/core"; export interface ExtendsClauseProps { extends: Children[] | undefined; diff --git a/packages/java/src/components/ImplementsClause.tsx b/packages/java/src/components/ImplementsClause.tsx index ad4b5e796..4900d28c1 100644 --- a/packages/java/src/components/ImplementsClause.tsx +++ b/packages/java/src/components/ImplementsClause.tsx @@ -1,4 +1,5 @@ -import { Children, List, Show } from "@alloy-js/core"; +import type { Children } from "@alloy-js/core"; +import { List, Show } from "@alloy-js/core"; export interface ImplementsClauseProps { interfaces: Children[] | undefined; diff --git a/packages/java/src/components/Interface.tsx b/packages/java/src/components/Interface.tsx index d808a0cf8..0c2fbb08e 100644 --- a/packages/java/src/components/Interface.tsx +++ b/packages/java/src/components/Interface.tsx @@ -1,11 +1,15 @@ -import { Block, Children } from "@alloy-js/core"; +import type { Children } from "@alloy-js/core"; +import { Block } from "@alloy-js/core"; -import { CommonDeclarationProps, Declaration } from "./Declaration.js"; +import type { CommonDeclarationProps } from "./Declaration.js"; +import { Declaration } from "./Declaration.js"; import { ExtendsClause } from "./ExtendsClause.jsx"; import { LexicalScope } from "./LexicalScope.jsx"; -import { ModifierProps, Modifiers } from "./Modifiers.jsx"; +import type { ModifierProps } from "./Modifiers.jsx"; +import { Modifiers } from "./Modifiers.jsx"; import { Name } from "./Name.js"; -import { TypeParameters, TypeParametersProps } from "./TypeParameters.jsx"; +import type { TypeParametersProps } from "./TypeParameters.jsx"; +import { TypeParameters } from "./TypeParameters.jsx"; export interface InterfaceProps extends CommonDeclarationProps, ModifierProps, TypeParametersProps { diff --git a/packages/java/src/components/LexicalScope.tsx b/packages/java/src/components/LexicalScope.tsx index 0986bf917..8f92d3988 100644 --- a/packages/java/src/components/LexicalScope.tsx +++ b/packages/java/src/components/LexicalScope.tsx @@ -1,10 +1,5 @@ -import { - createScope, - Scope, - ScopePropsWithInfo, - ScopePropsWithValue, - useScope, -} from "@alloy-js/core"; +import type { ScopePropsWithInfo, ScopePropsWithValue } from "@alloy-js/core"; +import { createScope, Scope, useScope } from "@alloy-js/core"; import { JavaLexicalScope } from "../symbols/index.js"; diff --git a/packages/java/src/components/MavenProject.tsx b/packages/java/src/components/MavenProject.tsx index 1153c4dc7..f3ba2b273 100644 --- a/packages/java/src/components/MavenProject.tsx +++ b/packages/java/src/components/MavenProject.tsx @@ -1,13 +1,7 @@ -import { - Children, - code, - List, - mapJoin, - Show, - SourceFile, -} from "@alloy-js/core"; +import type { Children } from "@alloy-js/core"; +import { code, List, mapJoin, Show, SourceFile } from "@alloy-js/core"; -import { MavenProjectConfig } from "../symbols/index.js"; +import type { MavenProjectConfig } from "../symbols/index.js"; import { useProject } from "./ProjectDirectory.js"; export interface MavenProjectProps { diff --git a/packages/java/src/components/Method.tsx b/packages/java/src/components/Method.tsx index f364ab315..a24d64fb8 100644 --- a/packages/java/src/components/Method.tsx +++ b/packages/java/src/components/Method.tsx @@ -1,9 +1,12 @@ -import { Children, code } from "@alloy-js/core"; +import type { Children } from "@alloy-js/core"; +import { code } from "@alloy-js/core"; import { useJavaNamePolicy } from "../name-policy.js"; -import { ModifierProps, Modifiers } from "./Modifiers.jsx"; +import type { ModifierProps } from "./Modifiers.jsx"; +import { Modifiers } from "./Modifiers.jsx"; import { Parameters } from "./Parameters.js"; -import { TypeParameters, TypeParametersProps } from "./TypeParameters.jsx"; +import type { TypeParametersProps } from "./TypeParameters.jsx"; +import { TypeParameters } from "./TypeParameters.jsx"; export interface MethodProps extends ModifierProps, TypeParametersProps { name: string; diff --git a/packages/java/src/components/NamedArgumentList.tsx b/packages/java/src/components/NamedArgumentList.tsx index 27d26791f..15dfa9d56 100644 --- a/packages/java/src/components/NamedArgumentList.tsx +++ b/packages/java/src/components/NamedArgumentList.tsx @@ -1,5 +1,5 @@ import { For, Indent } from "@alloy-js/core"; -import { Children } from "@alloy-js/core/jsx-runtime"; +import type { Children } from "@alloy-js/core/jsx-runtime"; export interface NamedArgumentListProps { args: Record; diff --git a/packages/java/src/components/ObjectDeclaration.tsx b/packages/java/src/components/ObjectDeclaration.tsx index b0c92d8bc..aaddd7e70 100644 --- a/packages/java/src/components/ObjectDeclaration.tsx +++ b/packages/java/src/components/ObjectDeclaration.tsx @@ -1,8 +1,9 @@ -import { Children, code } from "@alloy-js/core"; +import type { Children } from "@alloy-js/core"; +import { code } from "@alloy-js/core"; import { ArgumentList } from "./ArgumentList.jsx"; -import { CommonDeclarationProps } from "./Declaration.js"; -import { ModifierProps } from "./Modifiers.jsx"; +import type { CommonDeclarationProps } from "./Declaration.js"; +import type { ModifierProps } from "./Modifiers.jsx"; import { Variable } from "./Variable.js"; export interface ObjectDeclarationProps diff --git a/packages/java/src/components/PackageDirectory.tsx b/packages/java/src/components/PackageDirectory.tsx index ad08432fa..1aaed7e08 100644 --- a/packages/java/src/components/PackageDirectory.tsx +++ b/packages/java/src/components/PackageDirectory.tsx @@ -1,6 +1,5 @@ +import type { Children, ComponentContext } from "@alloy-js/core"; import { - Children, - ComponentContext, createContext, createScope, Scope, diff --git a/packages/java/src/components/Parameters.tsx b/packages/java/src/components/Parameters.tsx index 4d30d54c6..a7d617980 100644 --- a/packages/java/src/components/Parameters.tsx +++ b/packages/java/src/components/Parameters.tsx @@ -1,4 +1,5 @@ -import { Children, mapJoin } from "@alloy-js/core"; +import type { Children } from "@alloy-js/core"; +import { mapJoin } from "@alloy-js/core"; export interface ParametersProps { parameters?: Record; // Map parameter name to type diff --git a/packages/java/src/components/ProjectDirectory.tsx b/packages/java/src/components/ProjectDirectory.tsx index 96c8c92db..3b5da29d0 100644 --- a/packages/java/src/components/ProjectDirectory.tsx +++ b/packages/java/src/components/ProjectDirectory.tsx @@ -1,6 +1,5 @@ +import type { Children, ComponentContext } from "@alloy-js/core"; import { - Children, - ComponentContext, createContext, createScope, Scope, @@ -8,11 +7,11 @@ import { useContext, } from "@alloy-js/core"; -import { +import type { GradleProjectConfig, - JavaProjectScope, MavenProjectConfig, } from "../symbols/index.js"; +import { JavaProjectScope } from "../symbols/index.js"; import { MavenProject } from "./MavenProject.js"; export interface ProjectContext { diff --git a/packages/java/src/components/Reference.tsx b/packages/java/src/components/Reference.tsx index 7978e865a..161046322 100644 --- a/packages/java/src/components/Reference.tsx +++ b/packages/java/src/components/Reference.tsx @@ -1,4 +1,4 @@ -import { Refkey } from "@alloy-js/core"; +import type { Refkey } from "@alloy-js/core"; import { ref } from "../symbols/index.js"; diff --git a/packages/java/src/components/SourceFile.tsx b/packages/java/src/components/SourceFile.tsx index 16f750213..b23f327a8 100644 --- a/packages/java/src/components/SourceFile.tsx +++ b/packages/java/src/components/SourceFile.tsx @@ -1,14 +1,14 @@ +import type { ComponentContext, OutputSymbol } from "@alloy-js/core"; import { - ComponentContext, SourceFile as CoreSourceFile, createContext, - OutputSymbol, reactive, } from "@alloy-js/core"; -import { Children } from "@alloy-js/core/jsx-runtime"; +import type { Children } from "@alloy-js/core/jsx-runtime"; -import { JavaOutputSymbol } from "../symbols/index.js"; -import { ImportStatements, ImportSymbol } from "./ImportStatement.js"; +import type { JavaOutputSymbol } from "../symbols/index.js"; +import type { ImportSymbol } from "./ImportStatement.js"; +import { ImportStatements } from "./ImportStatement.js"; import { LexicalScope } from "./LexicalScope.jsx"; import { usePackage } from "./PackageDirectory.js"; import { Reference } from "./Reference.js"; diff --git a/packages/java/src/components/TypeArguments.tsx b/packages/java/src/components/TypeArguments.tsx index 2ba07cda1..afedb02e6 100644 --- a/packages/java/src/components/TypeArguments.tsx +++ b/packages/java/src/components/TypeArguments.tsx @@ -1,4 +1,5 @@ -import { Children, For, Indent, Match, Switch } from "@alloy-js/core"; +import type { Children } from "@alloy-js/core"; +import { For, Indent, Match, Switch } from "@alloy-js/core"; export interface TypeArgumentsProps { args?: Children[] | TypeArgumentDescriptor[]; diff --git a/packages/java/src/components/TypeParameters.tsx b/packages/java/src/components/TypeParameters.tsx index 530392bac..4c1eb134d 100644 --- a/packages/java/src/components/TypeParameters.tsx +++ b/packages/java/src/components/TypeParameters.tsx @@ -1,4 +1,5 @@ -import { Children, For, Indent, Show } from "@alloy-js/core"; +import type { Children } from "@alloy-js/core"; +import { For, Indent, Show } from "@alloy-js/core"; export interface TypeParametersProps { generics?: Record; diff --git a/packages/java/src/components/Variable.tsx b/packages/java/src/components/Variable.tsx index 75fd3ba8d..a98994ba0 100644 --- a/packages/java/src/components/Variable.tsx +++ b/packages/java/src/components/Variable.tsx @@ -1,7 +1,9 @@ -import { Children, code, Namekey } from "@alloy-js/core"; +import type { Children, Namekey } from "@alloy-js/core"; +import { code } from "@alloy-js/core"; import { useJavaNamePolicy } from "../name-policy.js"; -import { ModifierProps, Modifiers } from "./Modifiers.jsx"; +import type { ModifierProps } from "./Modifiers.jsx"; +import { Modifiers } from "./Modifiers.jsx"; export interface VariableProps extends ModifierProps { type: Children; diff --git a/packages/java/src/create-library.ts b/packages/java/src/create-library.ts index ada18bbbf..ff80005c5 100644 --- a/packages/java/src/create-library.ts +++ b/packages/java/src/create-library.ts @@ -1,14 +1,12 @@ // Declare libraries (dependencies) that you are adding to the project. // Allows discovery of symbols from these libraries for use in the program +import type { Binder, Refkey, SymbolCreator } from "@alloy-js/core"; import { - Binder, createScope, createSymbol, getSymbolCreatorSymbol, - Refkey, refkey, - SymbolCreator, } from "@alloy-js/core"; import { diff --git a/packages/java/src/name-policy.ts b/packages/java/src/name-policy.ts index c84f0b70a..7b17ad031 100644 --- a/packages/java/src/name-policy.ts +++ b/packages/java/src/name-policy.ts @@ -1,4 +1,5 @@ -import { createNamePolicy, NamePolicy, useNamePolicy } from "@alloy-js/core"; +import type { NamePolicy } from "@alloy-js/core"; +import { createNamePolicy, useNamePolicy } from "@alloy-js/core"; import { camelCase, constantCase, pascalCase } from "change-case"; export type JavaElements = diff --git a/packages/java/src/symbols/index.ts b/packages/java/src/symbols/index.ts index d9015604a..a624d6271 100644 --- a/packages/java/src/symbols/index.ts +++ b/packages/java/src/symbols/index.ts @@ -3,4 +3,4 @@ export * from "./java-output-symbol.js"; export * from "./java-package-scope.js"; export * from "./java-project-scope.js"; export * from "./reference.js"; -export * from "./scopes.js"; +export type * from "./scopes.js"; diff --git a/packages/java/src/symbols/java-output-symbol.ts b/packages/java/src/symbols/java-output-symbol.ts index 28e89059c..a1be22a56 100644 --- a/packages/java/src/symbols/java-output-symbol.ts +++ b/packages/java/src/symbols/java-output-symbol.ts @@ -1,11 +1,5 @@ -import { - createSymbol, - Namekey, - OutputSpace, - OutputSymbol, - OutputSymbolOptions, - refkey, -} from "@alloy-js/core"; +import type { Namekey, OutputSpace, OutputSymbolOptions } from "@alloy-js/core"; +import { createSymbol, OutputSymbol, refkey } from "@alloy-js/core"; import { usePackage } from "../components/PackageDirectory.jsx"; diff --git a/packages/java/src/symbols/java-project-scope.ts b/packages/java/src/symbols/java-project-scope.ts index 8aebd6fa4..1c739b133 100644 --- a/packages/java/src/symbols/java-project-scope.ts +++ b/packages/java/src/symbols/java-project-scope.ts @@ -1,6 +1,6 @@ +import type { OutputScopeOptions } from "@alloy-js/core"; import { OutputScope, - OutputScopeOptions, track, TrackOpTypes, trigger, diff --git a/packages/java/src/symbols/reference.ts b/packages/java/src/symbols/reference.ts index ace53d286..0a900cad8 100644 --- a/packages/java/src/symbols/reference.ts +++ b/packages/java/src/symbols/reference.ts @@ -1,8 +1,9 @@ -import { memo, Refkey, resolve, untrack, useContext } from "@alloy-js/core"; +import type { Refkey } from "@alloy-js/core"; +import { memo, resolve, untrack, useContext } from "@alloy-js/core"; import { SourceFileContext } from "../components/index.js"; -import { JavaOutputSymbol } from "./java-output-symbol.js"; -import { JavaOutputScope } from "./scopes.js"; +import type { JavaOutputSymbol } from "./java-output-symbol.js"; +import type { JavaOutputScope } from "./scopes.js"; /** * Resolve reference to symbol reference, and handle dependency management diff --git a/packages/java/src/symbols/scopes.ts b/packages/java/src/symbols/scopes.ts index 4cb3ef89c..26f6dfab3 100644 --- a/packages/java/src/symbols/scopes.ts +++ b/packages/java/src/symbols/scopes.ts @@ -1,4 +1,4 @@ -import { JavaPackageScope } from "./java-package-scope.js"; -import { JavaProjectScope } from "./java-project-scope.js"; +import type { JavaPackageScope } from "./java-package-scope.js"; +import type { JavaProjectScope } from "./java-project-scope.js"; export type JavaOutputScope = JavaProjectScope | JavaPackageScope; diff --git a/packages/java/test/maven.test.tsx b/packages/java/test/maven.test.tsx index 67413d84c..079205395 100644 --- a/packages/java/test/maven.test.tsx +++ b/packages/java/test/maven.test.tsx @@ -2,7 +2,7 @@ import { Output } from "@alloy-js/core"; import { expect, it } from "vitest"; import { ProjectDirectory } from "../src/components/index.js"; -import { MavenProjectConfig } from "../src/index.js"; +import type { MavenProjectConfig } from "../src/index.js"; it("generates barebones pom.xml file", () => { const projectConfig: MavenProjectConfig = { diff --git a/packages/java/test/utils.tsx b/packages/java/test/utils.tsx index 2334dcb95..cc9c2d9f0 100644 --- a/packages/java/test/utils.tsx +++ b/packages/java/test/utils.tsx @@ -1,4 +1,5 @@ -import { Children, Output, SymbolCreator } from "@alloy-js/core"; +import type { Children, SymbolCreator } from "@alloy-js/core"; +import { Output } from "@alloy-js/core"; import * as jv from "../src/index.js"; diff --git a/packages/json/src/components/json-array.tsx b/packages/json/src/components/json-array.tsx index e60b17a22..9a894e42b 100644 --- a/packages/json/src/components/json-array.tsx +++ b/packages/json/src/components/json-array.tsx @@ -1,5 +1,5 @@ +import type { Children, Refkey } from "@alloy-js/core"; import { - Children, createSymbol, emitSymbol, For, @@ -9,7 +9,6 @@ import { MemberScope, moveTakenMembersTo, onCleanup, - Refkey, useMemberScope, } from "@alloy-js/core"; diff --git a/packages/json/src/components/json-object.tsx b/packages/json/src/components/json-object.tsx index bf63ec0e9..4dd24c5c6 100644 --- a/packages/json/src/components/json-object.tsx +++ b/packages/json/src/components/json-object.tsx @@ -1,5 +1,5 @@ +import type { Children, Refkey } from "@alloy-js/core"; import { - Children, computed, createSymbol, emitSymbol, @@ -10,7 +10,6 @@ import { MemberScope, moveTakenMembersTo, onCleanup, - Refkey, useMemberScope, } from "@alloy-js/core"; diff --git a/packages/json/src/components/json-value.tsx b/packages/json/src/components/json-value.tsx index 7a399a075..b24932921 100644 --- a/packages/json/src/components/json-value.tsx +++ b/packages/json/src/components/json-value.tsx @@ -1,4 +1,5 @@ -import { Children, Refkey, useMemberDeclaration } from "@alloy-js/core"; +import type { Children, Refkey } from "@alloy-js/core"; +import { useMemberDeclaration } from "@alloy-js/core"; import { JsonArray } from "./json-array.jsx"; import { JsonObject } from "./json-object.jsx"; diff --git a/packages/json/src/components/reference.tsx b/packages/json/src/components/reference.tsx index 6bb079e25..c486c2a09 100644 --- a/packages/json/src/components/reference.tsx +++ b/packages/json/src/components/reference.tsx @@ -1,4 +1,4 @@ -import { Refkey } from "@alloy-js/core"; +import type { Refkey } from "@alloy-js/core"; import { ref } from "../symbols/index.js"; diff --git a/packages/json/src/components/source-file.tsx b/packages/json/src/components/source-file.tsx index dcb8a8bf1..0719ce24d 100644 --- a/packages/json/src/components/source-file.tsx +++ b/packages/json/src/components/source-file.tsx @@ -1,5 +1,5 @@ +import type { Children } from "@alloy-js/core"; import { - Children, SourceFile as CoreSourceFile, createSourceFileTap, createSymbol, diff --git a/packages/json/src/context/JsonFileContext.ts b/packages/json/src/context/JsonFileContext.ts index 2e01b8da0..1706d4814 100644 --- a/packages/json/src/context/JsonFileContext.ts +++ b/packages/json/src/context/JsonFileContext.ts @@ -1,10 +1,7 @@ -import { - ComponentContext, - createNamedContext, - useContext, -} from "@alloy-js/core"; +import type { ComponentContext } from "@alloy-js/core"; +import { createNamedContext, useContext } from "@alloy-js/core"; -import { JsonOutputSymbol } from "../symbols/json-symbol.js"; +import type { JsonOutputSymbol } from "../symbols/json-symbol.js"; export interface JsonFileContext { /** The path of the current JSON file. May be different from the path on disk. */ diff --git a/packages/json/src/symbols/index.ts b/packages/json/src/symbols/index.ts index 134f77bc2..9e63c0d96 100644 --- a/packages/json/src/symbols/index.ts +++ b/packages/json/src/symbols/index.ts @@ -1,14 +1,9 @@ -import { - memo, - OutputScope, - Refkey, - resolve, - unresolvedRefkey, -} from "@alloy-js/core"; +import type { OutputScope, Refkey } from "@alloy-js/core"; +import { memo, resolve, unresolvedRefkey } from "@alloy-js/core"; import { dirname, relative } from "pathe"; import { useJsonFileContext } from "../context/JsonFileContext.js"; -import { JsonOutputSymbol } from "./json-symbol.js"; +import type { JsonOutputSymbol } from "./json-symbol.js"; export * from "./json-symbol.js"; export function ref(refkey: Refkey) { diff --git a/packages/json/src/symbols/json-symbol.ts b/packages/json/src/symbols/json-symbol.ts index 26b8493be..5a452ab11 100644 --- a/packages/json/src/symbols/json-symbol.ts +++ b/packages/json/src/symbols/json-symbol.ts @@ -1,8 +1,7 @@ +import type { OutputSpace, OutputSymbolOptions } from "@alloy-js/core"; import { createSymbol, - OutputSpace, OutputSymbol, - OutputSymbolOptions, track, TrackOpTypes, trigger, diff --git a/packages/markdown/src/components/Code.tsx b/packages/markdown/src/components/Code.tsx index d84c309e2..1ece6d773 100644 --- a/packages/markdown/src/components/Code.tsx +++ b/packages/markdown/src/components/Code.tsx @@ -1,5 +1,5 @@ import { List } from "@alloy-js/core"; -import { Children } from "@alloy-js/core/jsx-runtime"; +import type { Children } from "@alloy-js/core/jsx-runtime"; export interface CodeProps { /** Language of the code block */ diff --git a/packages/markdown/src/components/Frontmatter.tsx b/packages/markdown/src/components/Frontmatter.tsx index 24b03d34d..1857e9ef6 100644 --- a/packages/markdown/src/components/Frontmatter.tsx +++ b/packages/markdown/src/components/Frontmatter.tsx @@ -1,5 +1,5 @@ import { List } from "@alloy-js/core"; -import { Children } from "@alloy-js/core/jsx-runtime"; +import type { Children } from "@alloy-js/core/jsx-runtime"; import { stringify } from "yaml"; export interface FrontmatterProps { diff --git a/packages/markdown/src/components/Heading.tsx b/packages/markdown/src/components/Heading.tsx index ef6948c3a..a5b18c389 100644 --- a/packages/markdown/src/components/Heading.tsx +++ b/packages/markdown/src/components/Heading.tsx @@ -1,5 +1,5 @@ -import { Refkey } from "@alloy-js/core"; -import { Children } from "@alloy-js/core/jsx-runtime"; +import type { Refkey } from "@alloy-js/core"; +import type { Children } from "@alloy-js/core/jsx-runtime"; import { useSectionContext } from "../context/section.js"; diff --git a/packages/markdown/src/components/Link.tsx b/packages/markdown/src/components/Link.tsx index 208351303..3854eff44 100644 --- a/packages/markdown/src/components/Link.tsx +++ b/packages/markdown/src/components/Link.tsx @@ -1,4 +1,4 @@ -import { Refkey } from "@alloy-js/core"; +import type { Refkey } from "@alloy-js/core"; export interface LinkPropsWithRefkey { refkey: Refkey; diff --git a/packages/markdown/src/components/List.tsx b/packages/markdown/src/components/List.tsx index c7ef34e58..c6c4dfc1d 100644 --- a/packages/markdown/src/components/List.tsx +++ b/packages/markdown/src/components/List.tsx @@ -1,5 +1,6 @@ import { childrenArray, For } from "@alloy-js/core"; -import { Children, memo } from "@alloy-js/core/jsx-runtime"; +import type { Children } from "@alloy-js/core/jsx-runtime"; +import { memo } from "@alloy-js/core/jsx-runtime"; export interface CommonListProps { children: Children; diff --git a/packages/markdown/src/components/Section.tsx b/packages/markdown/src/components/Section.tsx index 942473e39..effb7bea8 100644 --- a/packages/markdown/src/components/Section.tsx +++ b/packages/markdown/src/components/Section.tsx @@ -1,5 +1,5 @@ import { List } from "@alloy-js/core"; -import { Children } from "@alloy-js/core/jsx-runtime"; +import type { Children } from "@alloy-js/core/jsx-runtime"; import { SectionContext, useSectionContext } from "../context/section.js"; import { Heading } from "./Heading.jsx"; diff --git a/packages/markdown/src/components/SourceFile.tsx b/packages/markdown/src/components/SourceFile.tsx index 71781f7dc..74d6e1836 100644 --- a/packages/markdown/src/components/SourceFile.tsx +++ b/packages/markdown/src/components/SourceFile.tsx @@ -1,4 +1,5 @@ -import { Children, SourceFile as CoreSourceFile, List } from "@alloy-js/core"; +import type { Children } from "@alloy-js/core"; +import { SourceFile as CoreSourceFile, List } from "@alloy-js/core"; import { Link } from "./Link.jsx"; diff --git a/packages/markdown/src/context/section.ts b/packages/markdown/src/context/section.ts index 2839d385d..d7f04784e 100644 --- a/packages/markdown/src/context/section.ts +++ b/packages/markdown/src/context/section.ts @@ -1,4 +1,5 @@ -import { ComponentContext, createContext, useContext } from "@alloy-js/core"; +import type { ComponentContext } from "@alloy-js/core"; +import { createContext, useContext } from "@alloy-js/core"; export interface SectionContext { level: number; diff --git a/packages/markdown/test/utils.tsx b/packages/markdown/test/utils.tsx index e33543242..f68d48e2b 100644 --- a/packages/markdown/test/utils.tsx +++ b/packages/markdown/test/utils.tsx @@ -1,4 +1,5 @@ -import { Children, Output } from "@alloy-js/core"; +import type { Children } from "@alloy-js/core"; +import { Output } from "@alloy-js/core"; import { SourceFile } from "../src/components/SourceFile.jsx"; diff --git a/packages/msbuild/scripts/components/xml-component.tsx b/packages/msbuild/scripts/components/xml-component.tsx index 5e670a912..9899f55ef 100644 --- a/packages/msbuild/scripts/components/xml-component.tsx +++ b/packages/msbuild/scripts/components/xml-component.tsx @@ -5,7 +5,7 @@ import { VarDeclaration, } from "@alloy-js/typescript"; -import { XmlAttribute, XmlSchema } from "../collect-schemas.js"; +import type { XmlAttribute, XmlSchema } from "../collect-schemas.js"; export function XmlComponent(props: { schema: XmlSchema }) { return ( diff --git a/packages/msbuild/src/components/utils/make-tag.tsx b/packages/msbuild/src/components/utils/make-tag.tsx index 234429f89..853dcc795 100644 --- a/packages/msbuild/src/components/utils/make-tag.tsx +++ b/packages/msbuild/src/components/utils/make-tag.tsx @@ -1,4 +1,5 @@ -import { Children, For, Indent, List, splitProps } from "@alloy-js/core"; +import type { Children } from "@alloy-js/core"; +import { For, Indent, List, splitProps } from "@alloy-js/core"; export function makeTag(tag: string) { return (props: { children?: Children } & T) => { diff --git a/packages/python/src/builtins/python.ts b/packages/python/src/builtins/python.ts index 8ebb46e95..88daebe3c 100644 --- a/packages/python/src/builtins/python.ts +++ b/packages/python/src/builtins/python.ts @@ -1,4 +1,4 @@ -import { SymbolCreator } from "@alloy-js/core"; +import type { SymbolCreator } from "@alloy-js/core"; import { createModule, type ModuleDescriptor } from "../create-module.js"; diff --git a/packages/python/src/components/CallSignature.tsx b/packages/python/src/components/CallSignature.tsx index 367db8834..0a5459252 100644 --- a/packages/python/src/components/CallSignature.tsx +++ b/packages/python/src/components/CallSignature.tsx @@ -1,18 +1,10 @@ -import { - Children, - computed, - createSymbolSlot, - For, - Show, - SymbolSlot, -} from "@alloy-js/core"; - -import { - isParameterDescriptor, - ParameterDescriptor, -} from "../parameter-descriptor.js"; +import type { Children, SymbolSlot } from "@alloy-js/core"; +import { computed, createSymbolSlot, For, Show } from "@alloy-js/core"; + +import type { ParameterDescriptor } from "../parameter-descriptor.js"; +import { isParameterDescriptor } from "../parameter-descriptor.js"; import { createPythonSymbol } from "../symbol-creation.js"; -import { PythonOutputSymbol } from "../symbols/index.js"; +import type { PythonOutputSymbol } from "../symbols/index.js"; import { Atom } from "./Atom.jsx"; import { TypeRefContext } from "./TypeRefContext.jsx"; diff --git a/packages/python/src/components/ClassDeclaration.tsx b/packages/python/src/components/ClassDeclaration.tsx index b41604305..747d91962 100644 --- a/packages/python/src/components/ClassDeclaration.tsx +++ b/packages/python/src/components/ClassDeclaration.tsx @@ -1,7 +1,9 @@ -import { Children, List, Name, Show, createContentSlot } from "@alloy-js/core"; +import type { Children } from "@alloy-js/core"; +import { List, Name, Show, createContentSlot } from "@alloy-js/core"; import { createPythonSymbol } from "../symbol-creation.js"; -import { BaseDeclarationProps, Declaration } from "./Declaration.js"; +import type { BaseDeclarationProps } from "./Declaration.js"; +import { Declaration } from "./Declaration.js"; import { DecoratorList } from "./DecoratorList.jsx"; import { MemberScope } from "./MemberScope.jsx"; import { PythonBlock } from "./PythonBlock.jsx"; diff --git a/packages/python/src/components/ClassInstantiation.tsx b/packages/python/src/components/ClassInstantiation.tsx index c0e1931dd..6078a5a41 100644 --- a/packages/python/src/components/ClassInstantiation.tsx +++ b/packages/python/src/components/ClassInstantiation.tsx @@ -5,10 +5,8 @@ import { } from "@alloy-js/core"; import { createPythonSymbol } from "../symbol-creation.js"; -import { - FunctionCallExpression, - FunctionCallExpressionProps, -} from "./FunctionCallExpression.jsx"; +import type { FunctionCallExpressionProps } from "./FunctionCallExpression.jsx"; +import { FunctionCallExpression } from "./FunctionCallExpression.jsx"; import { PythonSourceFileContext } from "./SourceFile.jsx"; export interface ClassInstantiationProps extends FunctionCallExpressionProps {} diff --git a/packages/python/src/components/Declaration.tsx b/packages/python/src/components/Declaration.tsx index a1b6eeb01..0914aa14d 100644 --- a/packages/python/src/components/Declaration.tsx +++ b/packages/python/src/components/Declaration.tsx @@ -1,13 +1,9 @@ -import { - Children, - Declaration as CoreDeclaration, - Namekey, - Refkey, -} from "@alloy-js/core"; +import type { Children, Namekey, Refkey } from "@alloy-js/core"; +import { Declaration as CoreDeclaration } from "@alloy-js/core"; -import { PythonElements } from "../name-policy.js"; +import type { PythonElements } from "../name-policy.js"; import { createPythonSymbol } from "../symbol-creation.js"; -import { PythonOutputSymbol } from "../symbols/index.js"; +import type { PythonOutputSymbol } from "../symbols/index.js"; export interface BaseDeclarationProps { /** diff --git a/packages/python/src/components/DecoratorList.tsx b/packages/python/src/components/DecoratorList.tsx index b02b70f8d..3e136b2a7 100644 --- a/packages/python/src/components/DecoratorList.tsx +++ b/packages/python/src/components/DecoratorList.tsx @@ -1,4 +1,5 @@ -import { Children, For } from "@alloy-js/core"; +import type { Children } from "@alloy-js/core"; +import { For } from "@alloy-js/core"; /** * Props for {@link DecoratorList}. diff --git a/packages/python/src/components/EnumDeclaration.tsx b/packages/python/src/components/EnumDeclaration.tsx index 655a82912..cf6179139 100644 --- a/packages/python/src/components/EnumDeclaration.tsx +++ b/packages/python/src/components/EnumDeclaration.tsx @@ -1,15 +1,12 @@ -import { - Children, - Declaration as CoreDeclaration, - For, - Show, -} from "@alloy-js/core"; +import type { Children } from "@alloy-js/core"; +import { Declaration as CoreDeclaration, For, Show } from "@alloy-js/core"; import { enumModule } from "../builtins/python.js"; import { createPythonSymbol } from "../symbol-creation.js"; -import { BaseDeclarationProps } from "./Declaration.js"; +import type { BaseDeclarationProps } from "./Declaration.js"; import { DecoratorList } from "./DecoratorList.jsx"; -import { EnumMember, EnumMemberProps } from "./EnumMember.js"; +import type { EnumMemberProps } from "./EnumMember.js"; +import { EnumMember } from "./EnumMember.js"; import { MemberScope } from "./MemberScope.jsx"; import { PythonBlock } from "./PythonBlock.jsx"; diff --git a/packages/python/src/components/EnumMember.tsx b/packages/python/src/components/EnumMember.tsx index aee7dd54e..b7c941891 100644 --- a/packages/python/src/components/EnumMember.tsx +++ b/packages/python/src/components/EnumMember.tsx @@ -1,8 +1,9 @@ -import { Children, Namekey, Refkey, Show } from "@alloy-js/core"; +import type { Children, Namekey, Refkey } from "@alloy-js/core"; +import { Show } from "@alloy-js/core"; import { enumModule } from "../builtins/python.js"; import { createPythonSymbol } from "../symbol-creation.js"; -import { PythonOutputSymbol } from "../symbols/index.js"; +import type { PythonOutputSymbol } from "../symbols/index.js"; import { Atom } from "./Atom.jsx"; import { InlineDoc } from "./PyDoc.jsx"; diff --git a/packages/python/src/components/FunctionBase.tsx b/packages/python/src/components/FunctionBase.tsx index a20a12dec..ae8e14503 100644 --- a/packages/python/src/components/FunctionBase.tsx +++ b/packages/python/src/components/FunctionBase.tsx @@ -1,9 +1,11 @@ import { createContentSlot, Name, Show, type Children } from "@alloy-js/core"; -import { PythonOutputSymbol } from "../index.js"; +import type { PythonOutputSymbol } from "../index.js"; import { getCallSignatureProps } from "../utils.js"; -import { CallSignature, CallSignatureProps } from "./CallSignature.jsx"; -import { BaseDeclarationProps, Declaration } from "./Declaration.js"; +import type { CallSignatureProps } from "./CallSignature.jsx"; +import { CallSignature } from "./CallSignature.jsx"; +import type { BaseDeclarationProps } from "./Declaration.js"; +import { Declaration } from "./Declaration.js"; import { DecoratorList } from "./DecoratorList.jsx"; import { LexicalScope } from "./LexicalScope.jsx"; import { PythonBlock } from "./PythonBlock.jsx"; diff --git a/packages/python/src/components/FunctionCallExpression.tsx b/packages/python/src/components/FunctionCallExpression.tsx index df5872f1a..ddbbd0551 100644 --- a/packages/python/src/components/FunctionCallExpression.tsx +++ b/packages/python/src/components/FunctionCallExpression.tsx @@ -1,4 +1,5 @@ -import { Children, For, Indent, Wrap } from "@alloy-js/core"; +import type { Children } from "@alloy-js/core"; +import { For, Indent, Wrap } from "@alloy-js/core"; export interface FunctionCallExpressionProps { target: Children; diff --git a/packages/python/src/components/ImportStatement.tsx b/packages/python/src/components/ImportStatement.tsx index 14ca36e0c..020a022e0 100644 --- a/packages/python/src/components/ImportStatement.tsx +++ b/packages/python/src/components/ImportStatement.tsx @@ -1,6 +1,6 @@ import { computed, mapJoin, memo } from "@alloy-js/core"; -import { ImportedSymbol, ImportRecords } from "../symbols/index.js"; +import type { ImportedSymbol, ImportRecords } from "../symbols/index.js"; export interface ImportStatementsProps { records: ImportRecords; diff --git a/packages/python/src/components/LexicalScope.tsx b/packages/python/src/components/LexicalScope.tsx index 487b5c815..3415a3e7e 100644 --- a/packages/python/src/components/LexicalScope.tsx +++ b/packages/python/src/components/LexicalScope.tsx @@ -1,4 +1,5 @@ -import { Scope, ScopePropsWithInfo, ScopePropsWithValue } from "@alloy-js/core"; +import type { ScopePropsWithInfo, ScopePropsWithValue } from "@alloy-js/core"; +import { Scope } from "@alloy-js/core"; import { createLexicalScope } from "../symbol-creation.js"; import { PythonLexicalScope } from "../symbols/python-lexical-scope.js"; diff --git a/packages/python/src/components/MemberExpression.tsx b/packages/python/src/components/MemberExpression.tsx index 506eb2abc..e672a5790 100644 --- a/packages/python/src/components/MemberExpression.tsx +++ b/packages/python/src/components/MemberExpression.tsx @@ -1,11 +1,9 @@ +import type { Children, OutputSymbol, Refkey } from "@alloy-js/core"; import { - Children, computed, createAccessExpression, For, List, - OutputSymbol, - Refkey, Show, } from "@alloy-js/core"; diff --git a/packages/python/src/components/MemberScope.tsx b/packages/python/src/components/MemberScope.tsx index fb43efc3b..41628501a 100644 --- a/packages/python/src/components/MemberScope.tsx +++ b/packages/python/src/components/MemberScope.tsx @@ -1,11 +1,8 @@ -import { - Children, - MemberScope as CoreMemberScope, - createScope, -} from "@alloy-js/core"; +import type { Children } from "@alloy-js/core"; +import { MemberScope as CoreMemberScope, createScope } from "@alloy-js/core"; import { PythonMemberScope } from "../symbols/python-member-scope.js"; -import { PythonOutputSymbol } from "../symbols/python-output-symbol.js"; +import type { PythonOutputSymbol } from "../symbols/python-output-symbol.js"; import { usePythonScope } from "../symbols/scopes.js"; export interface MemberScopeProps { children: Children; diff --git a/packages/python/src/components/MethodBase.tsx b/packages/python/src/components/MethodBase.tsx index a7d209053..07fdfaf74 100644 --- a/packages/python/src/components/MethodBase.tsx +++ b/packages/python/src/components/MethodBase.tsx @@ -1,10 +1,10 @@ import { abcModule } from "../builtins/python.js"; import { DecoratorList } from "./DecoratorList.jsx"; -import { - BaseFunctionDeclaration, +import type { BaseFunctionDeclarationProps, CommonFunctionProps, } from "./FunctionBase.js"; +import { BaseFunctionDeclaration } from "./FunctionBase.js"; /** * Shared base props for all method-like declarations. diff --git a/packages/python/src/components/PropertyDeclaration.tsx b/packages/python/src/components/PropertyDeclaration.tsx index 0e6c6f77a..42785affc 100644 --- a/packages/python/src/components/PropertyDeclaration.tsx +++ b/packages/python/src/components/PropertyDeclaration.tsx @@ -1,8 +1,7 @@ +import type { Children, Refkey } from "@alloy-js/core"; import { - Children, DeclarationContext, List, - Refkey, Show, childrenArray, code, @@ -13,12 +12,12 @@ import { useContext, } from "@alloy-js/core"; -import { PythonOutputSymbol } from "../index.js"; -import { ParameterDescriptor } from "../parameter-descriptor.js"; +import type { PythonOutputSymbol } from "../index.js"; +import type { ParameterDescriptor } from "../parameter-descriptor.js"; import { createMethodSymbol } from "../symbols/factories.js"; import { Atom } from "./Atom.jsx"; import { DecoratorList } from "./DecoratorList.jsx"; -import { CommonFunctionProps } from "./FunctionBase.js"; +import type { CommonFunctionProps } from "./FunctionBase.js"; import { MethodDeclarationBase } from "./MethodBase.js"; const setterTag = Symbol(); diff --git a/packages/python/src/components/PyDoc.tsx b/packages/python/src/components/PyDoc.tsx index de3a53668..86f9e410a 100644 --- a/packages/python/src/components/PyDoc.tsx +++ b/packages/python/src/components/PyDoc.tsx @@ -1,5 +1,5 @@ +import type { Children } from "@alloy-js/core"; import { - Children, For, Indent, List, @@ -10,7 +10,7 @@ import { isKeyedChild, } from "@alloy-js/core"; -import { ParameterDescriptor } from "../parameter-descriptor.js"; +import type { ParameterDescriptor } from "../parameter-descriptor.js"; import { Atom } from "./Atom.jsx"; export interface FunctionDocProps { diff --git a/packages/python/src/components/PythonBlock.tsx b/packages/python/src/components/PythonBlock.tsx index d24a9a895..70dbd5e9d 100644 --- a/packages/python/src/components/PythonBlock.tsx +++ b/packages/python/src/components/PythonBlock.tsx @@ -1,4 +1,5 @@ -import { Block, Children } from "@alloy-js/core"; +import type { Children } from "@alloy-js/core"; +import { Block } from "@alloy-js/core"; export interface PythonBlockProps { children: Children; diff --git a/packages/python/src/components/Reference.tsx b/packages/python/src/components/Reference.tsx index a23d3a312..8e6b34fba 100644 --- a/packages/python/src/components/Reference.tsx +++ b/packages/python/src/components/Reference.tsx @@ -1,4 +1,5 @@ -import { computed, emitSymbol, Refkey } from "@alloy-js/core"; +import type { Refkey } from "@alloy-js/core"; +import { computed, emitSymbol } from "@alloy-js/core"; import { isTypeRefContext } from "../context/type-ref-context.js"; import { ref } from "../symbols/index.js"; diff --git a/packages/python/src/components/SourceFile.tsx b/packages/python/src/components/SourceFile.tsx index 4173df95b..a48f159f1 100644 --- a/packages/python/src/components/SourceFile.tsx +++ b/packages/python/src/components/SourceFile.tsx @@ -1,13 +1,12 @@ +import type { ComponentContext, PrintTreeOptions } from "@alloy-js/core"; import { childrenArray, - ComponentContext, computed, SourceFile as CoreSourceFile, createNamedContext, createScope, isComponentCreator, List, - PrintTreeOptions, Scope, Show, SourceDirectoryContext, diff --git a/packages/python/src/components/StatementList.tsx b/packages/python/src/components/StatementList.tsx index ef0c5167b..fc660cd56 100644 --- a/packages/python/src/components/StatementList.tsx +++ b/packages/python/src/components/StatementList.tsx @@ -1,4 +1,5 @@ -import { Children, List } from "@alloy-js/core"; +import type { Children } from "@alloy-js/core"; +import { List } from "@alloy-js/core"; export interface StatementListProps { children: Children; diff --git a/packages/python/src/components/TypeArguments.tsx b/packages/python/src/components/TypeArguments.tsx index 7d291cbee..c62280489 100644 --- a/packages/python/src/components/TypeArguments.tsx +++ b/packages/python/src/components/TypeArguments.tsx @@ -1,4 +1,5 @@ -import { Children, For } from "@alloy-js/core"; +import type { Children } from "@alloy-js/core"; +import { For } from "@alloy-js/core"; export interface TypeArgumentsProps { args: Children[]; diff --git a/packages/python/src/components/TypeReference.tsx b/packages/python/src/components/TypeReference.tsx index 42136010f..76d469c7f 100644 --- a/packages/python/src/components/TypeReference.tsx +++ b/packages/python/src/components/TypeReference.tsx @@ -1,4 +1,5 @@ -import { Children, Refkey, Show } from "@alloy-js/core"; +import type { Children, Refkey } from "@alloy-js/core"; +import { Show } from "@alloy-js/core"; import { TypeArguments } from "./TypeArguments.js"; import { TypeRefContext } from "./TypeRefContext.js"; diff --git a/packages/python/src/components/UnionTypeExpression.tsx b/packages/python/src/components/UnionTypeExpression.tsx index 7e98b4890..71dfa9118 100644 --- a/packages/python/src/components/UnionTypeExpression.tsx +++ b/packages/python/src/components/UnionTypeExpression.tsx @@ -1,4 +1,5 @@ -import { Children, List } from "@alloy-js/core"; +import type { Children } from "@alloy-js/core"; +import { List } from "@alloy-js/core"; export interface UnionTypeExpressionProps { children: Children; diff --git a/packages/python/src/components/VariableDeclaration.tsx b/packages/python/src/components/VariableDeclaration.tsx index 1451bb4ce..f6bd613b8 100644 --- a/packages/python/src/components/VariableDeclaration.tsx +++ b/packages/python/src/components/VariableDeclaration.tsx @@ -1,5 +1,5 @@ +import type { Children } from "@alloy-js/core"; import { - Children, Declaration as CoreDeclaration, Name, Show, @@ -9,7 +9,7 @@ import { import { createPythonSymbol } from "../symbol-creation.js"; import { Atom } from "./Atom.jsx"; -import { BaseDeclarationProps } from "./Declaration.jsx"; +import type { BaseDeclarationProps } from "./Declaration.jsx"; import { SimpleCommentBlock } from "./PyDoc.jsx"; import { TypeRefContext } from "./TypeRefContext.jsx"; diff --git a/packages/python/src/context/type-ref-context.tsx b/packages/python/src/context/type-ref-context.tsx index 394449446..eb0f070b3 100644 --- a/packages/python/src/context/type-ref-context.tsx +++ b/packages/python/src/context/type-ref-context.tsx @@ -1,4 +1,5 @@ -import { ComponentContext, createContext, useContext } from "@alloy-js/core"; +import type { ComponentContext } from "@alloy-js/core"; +import { createContext, useContext } from "@alloy-js/core"; /** * Context for tracking whether we are in a type annotation position. diff --git a/packages/python/src/create-module.ts b/packages/python/src/create-module.ts index 099666a33..8f9466eb8 100644 --- a/packages/python/src/create-module.ts +++ b/packages/python/src/create-module.ts @@ -1,10 +1,10 @@ +import type { SymbolCreator } from "@alloy-js/core"; import { type Binder, createScope, getSymbolCreatorSymbol, type Refkey, refkey, - SymbolCreator, } from "@alloy-js/core"; import { createPythonSymbol } from "./symbol-creation.js"; diff --git a/packages/python/src/name-conflict-resolver.ts b/packages/python/src/name-conflict-resolver.ts index 652ba0800..ea306a9c1 100644 --- a/packages/python/src/name-conflict-resolver.ts +++ b/packages/python/src/name-conflict-resolver.ts @@ -1,6 +1,6 @@ -import { OutputSymbol } from "@alloy-js/core"; +import type { OutputSymbol } from "@alloy-js/core"; -import { PythonOutputSymbol } from "./symbols/python-output-symbol.js"; +import type { PythonOutputSymbol } from "./symbols/python-output-symbol.js"; export function pythonNameConflictResolver(_: string, symbols: OutputSymbol[]) { if (symbols.length === 0) return; diff --git a/packages/python/src/name-policy.ts b/packages/python/src/name-policy.ts index b0f317e02..1442bdccc 100644 --- a/packages/python/src/name-policy.ts +++ b/packages/python/src/name-policy.ts @@ -1,4 +1,5 @@ -import { createNamePolicy, NamePolicy, useNamePolicy } from "@alloy-js/core"; +import type { NamePolicy } from "@alloy-js/core"; +import { createNamePolicy, useNamePolicy } from "@alloy-js/core"; import { constantCase, pascalCase, snakeCase } from "change-case"; export type PythonElements = diff --git a/packages/python/src/symbol-creation.ts b/packages/python/src/symbol-creation.ts index b6912c793..839d7da05 100644 --- a/packages/python/src/symbol-creation.ts +++ b/packages/python/src/symbol-creation.ts @@ -1,19 +1,11 @@ -import { - Namekey, - OutputScopeOptions, - OutputSpace, - createScope, - createSymbol, - useContext, -} from "@alloy-js/core"; +import type { Namekey, OutputScopeOptions, OutputSpace } from "@alloy-js/core"; +import { createScope, createSymbol, useContext } from "@alloy-js/core"; import { PythonSourceFileContext } from "./components/SourceFile.js"; -import { PythonElements, usePythonNamePolicy } from "./name-policy.js"; -import { - PythonOutputSymbol, - PythonOutputSymbolOptions, - usePythonScope, -} from "./symbols/index.js"; +import type { PythonElements } from "./name-policy.js"; +import { usePythonNamePolicy } from "./name-policy.js"; +import type { PythonOutputSymbolOptions } from "./symbols/index.js"; +import { PythonOutputSymbol, usePythonScope } from "./symbols/index.js"; import { PythonLexicalScope } from "./symbols/python-lexical-scope.js"; interface CreatePythonSymbolOptions extends PythonOutputSymbolOptions { diff --git a/packages/python/src/symbols/factories.ts b/packages/python/src/symbols/factories.ts index 85d645365..2bd64301d 100644 --- a/packages/python/src/symbols/factories.ts +++ b/packages/python/src/symbols/factories.ts @@ -1,4 +1,4 @@ -import { Namekey } from "@alloy-js/core"; +import type { Namekey } from "@alloy-js/core"; import { createPythonSymbol } from "../symbol-creation.js"; import type { PythonOutputSymbol } from "./python-output-symbol.js"; diff --git a/packages/python/src/symbols/python-member-scope.ts b/packages/python/src/symbols/python-member-scope.ts index 75cdf36d1..67ef5c544 100644 --- a/packages/python/src/symbols/python-member-scope.ts +++ b/packages/python/src/symbols/python-member-scope.ts @@ -1,6 +1,6 @@ import { OutputScope } from "@alloy-js/core"; -import { PythonOutputSymbol } from "./python-output-symbol.js"; +import type { PythonOutputSymbol } from "./python-output-symbol.js"; export class PythonMemberScope extends OutputScope { get ownerSymbol() { diff --git a/packages/python/src/symbols/python-output-symbol.ts b/packages/python/src/symbols/python-output-symbol.ts index a7956173c..360e75643 100644 --- a/packages/python/src/symbols/python-output-symbol.ts +++ b/packages/python/src/symbols/python-output-symbol.ts @@ -1,9 +1,7 @@ +import type { Namekey, OutputSpace, OutputSymbolOptions } from "@alloy-js/core"; import { createSymbol, - Namekey, - OutputSpace, OutputSymbol, - OutputSymbolOptions, track, TrackOpTypes, trigger, diff --git a/packages/python/src/symbols/reference.tsx b/packages/python/src/symbols/reference.tsx index 766eef007..920244198 100644 --- a/packages/python/src/symbols/reference.tsx +++ b/packages/python/src/symbols/reference.tsx @@ -1,7 +1,6 @@ +import type { Children, Refkey } from "@alloy-js/core"; import { - Children, memo, - Refkey, resolve, unresolvedRefkey, untrack, @@ -11,8 +10,8 @@ import { import { MemberExpression } from "../components/MemberExpression.jsx"; import { PythonSourceFileContext } from "../components/SourceFile.jsx"; import { PythonModuleScope } from "./python-module-scope.js"; -import { PythonOutputSymbol } from "./python-output-symbol.js"; -import { PythonOutputScope } from "./scopes.js"; +import type { PythonOutputSymbol } from "./python-output-symbol.js"; +import type { PythonOutputScope } from "./scopes.js"; export interface RefOptions { /** diff --git a/packages/python/src/symbols/scopes.ts b/packages/python/src/symbols/scopes.ts index aaf2d3663..5cef6094f 100644 --- a/packages/python/src/symbols/scopes.ts +++ b/packages/python/src/symbols/scopes.ts @@ -1,8 +1,8 @@ import { useScope } from "@alloy-js/core"; import { PythonLexicalScope } from "./python-lexical-scope.js"; -import { PythonMemberScope } from "./python-member-scope.js"; -import { PythonModuleScope } from "./python-module-scope.js"; +import type { PythonMemberScope } from "./python-member-scope.js"; +import type { PythonModuleScope } from "./python-module-scope.js"; export type PythonOutputScope = | PythonLexicalScope diff --git a/packages/python/src/utils.ts b/packages/python/src/utils.ts index fca3d3c53..38309618f 100644 --- a/packages/python/src/utils.ts +++ b/packages/python/src/utils.ts @@ -1,6 +1,6 @@ import { defaultProps, splitProps } from "@alloy-js/core"; -import { CallSignatureProps } from "./components/index.js"; +import type { CallSignatureProps } from "./components/index.js"; /** * Extract only the call signature props from a props object which extends diff --git a/packages/python/test/memberexpressions.test.tsx b/packages/python/test/memberexpressions.test.tsx index 7c9f5fb35..07c075ae3 100644 --- a/packages/python/test/memberexpressions.test.tsx +++ b/packages/python/test/memberexpressions.test.tsx @@ -2,10 +2,10 @@ import { code, memberRefkey, refkey, render } from "@alloy-js/core"; import { describe, expect, it } from "vitest"; import * as py from "../src/index.js"; +import type { ParameterDescriptor } from "../src/index.js"; import { ClassDeclaration, FunctionDeclaration, - ParameterDescriptor, SourceFile, VariableDeclaration, } from "../src/index.js"; diff --git a/packages/python/test/utils.tsx b/packages/python/test/utils.tsx index 15dd4e5a2..68e497127 100644 --- a/packages/python/test/utils.tsx +++ b/packages/python/test/utils.tsx @@ -1,11 +1,11 @@ -import { +import type { Binder, Children, NamePolicy, - Output, OutputScope, SymbolCreator, } from "@alloy-js/core"; +import { Output } from "@alloy-js/core"; import * as py from "../src/components/index.js"; import { pythonNameConflictResolver } from "../src/name-conflict-resolver.js"; diff --git a/packages/rollup-plugin/src/index.ts b/packages/rollup-plugin/src/index.ts index 71832cb75..b5b89a8e8 100644 --- a/packages/rollup-plugin/src/index.ts +++ b/packages/rollup-plugin/src/index.ts @@ -19,9 +19,6 @@ export default function alloyPlugin(options: AlloyPluginOptions = {}): any { sourceMaps: "both", babelHelpers: "bundled", extensions: [".ts", ".tsx"], - presets: [ - [typescriptPreset, { onlyRemoveTypeImports: false }], - [alloyPreset], - ], + presets: [typescriptPreset, [alloyPreset]], }); } diff --git a/packages/trace-cli/src/test/component.test.ts b/packages/trace-cli/src/test/component.test.ts index fc4153515..3f29819db 100644 --- a/packages/trace-cli/src/test/component.test.ts +++ b/packages/trace-cli/src/test/component.test.ts @@ -1,4 +1,4 @@ -import { DatabaseSync } from "node:sqlite"; +import type { DatabaseSync } from "node:sqlite"; import { afterEach, beforeEach, describe, expect, it } from "vitest"; diff --git a/packages/trace-cli/src/test/effect.test.ts b/packages/trace-cli/src/test/effect.test.ts index bb9fd6fcc..a340c47e5 100644 --- a/packages/trace-cli/src/test/effect.test.ts +++ b/packages/trace-cli/src/test/effect.test.ts @@ -1,4 +1,4 @@ -import { DatabaseSync } from "node:sqlite"; +import type { DatabaseSync } from "node:sqlite"; import { afterEach, beforeEach, describe, expect, it } from "vitest"; diff --git a/packages/trace-cli/src/test/misc-commands.test.ts b/packages/trace-cli/src/test/misc-commands.test.ts index 66c72081a..924bdbc35 100644 --- a/packages/trace-cli/src/test/misc-commands.test.ts +++ b/packages/trace-cli/src/test/misc-commands.test.ts @@ -1,4 +1,4 @@ -import { DatabaseSync } from "node:sqlite"; +import type { DatabaseSync } from "node:sqlite"; import { afterEach, beforeEach, describe, expect, it } from "vitest"; diff --git a/packages/trace-cli/src/test/ref.test.ts b/packages/trace-cli/src/test/ref.test.ts index eabe30a84..0d182589f 100644 --- a/packages/trace-cli/src/test/ref.test.ts +++ b/packages/trace-cli/src/test/ref.test.ts @@ -1,4 +1,4 @@ -import { DatabaseSync } from "node:sqlite"; +import type { DatabaseSync } from "node:sqlite"; import { afterEach, beforeEach, describe, expect, it } from "vitest"; diff --git a/packages/trace-cli/src/test/types.test.ts b/packages/trace-cli/src/test/types.test.ts index aa5a7bb2e..bf3af1f11 100644 --- a/packages/trace-cli/src/test/types.test.ts +++ b/packages/trace-cli/src/test/types.test.ts @@ -1,4 +1,4 @@ -import { DatabaseSync } from "node:sqlite"; +import type { DatabaseSync } from "node:sqlite"; import { afterEach, beforeEach, describe, expect, it, vi } from "vitest"; diff --git a/packages/typescript/src/builtins/node.ts b/packages/typescript/src/builtins/node.ts index 065fc03d0..56d3d2ac9 100644 --- a/packages/typescript/src/builtins/node.ts +++ b/packages/typescript/src/builtins/node.ts @@ -1,4 +1,4 @@ -import { SymbolCreator } from "@alloy-js/core"; +import type { SymbolCreator } from "@alloy-js/core"; import { createPackage } from "../create-package.js"; diff --git a/packages/typescript/src/components/ArrayExpression.tsx b/packages/typescript/src/components/ArrayExpression.tsx index 894dc582a..eb9643353 100644 --- a/packages/typescript/src/components/ArrayExpression.tsx +++ b/packages/typescript/src/components/ArrayExpression.tsx @@ -1,4 +1,5 @@ -import { Children, childrenArray, For, Indent, Show } from "@alloy-js/core"; +import type { Children } from "@alloy-js/core"; +import { childrenArray, For, Indent, Show } from "@alloy-js/core"; import { ValueExpression } from "./ValueExpression.js"; diff --git a/packages/typescript/src/components/ArrowFunction.tsx b/packages/typescript/src/components/ArrowFunction.tsx index 6e22a9ffb..3c234f355 100644 --- a/packages/typescript/src/components/ArrowFunction.tsx +++ b/packages/typescript/src/components/ArrowFunction.tsx @@ -6,7 +6,8 @@ import { } from "@alloy-js/core"; import { getCallSignatureProps } from "../utils.js"; -import { CallSignature, CallSignatureProps } from "./CallSignature.jsx"; +import type { CallSignatureProps } from "./CallSignature.jsx"; +import { CallSignature } from "./CallSignature.jsx"; import { FunctionBody, FunctionParameters, diff --git a/packages/typescript/src/components/BarrelFile.tsx b/packages/typescript/src/components/BarrelFile.tsx index 942495239..e2d6613fb 100644 --- a/packages/typescript/src/components/BarrelFile.tsx +++ b/packages/typescript/src/components/BarrelFile.tsx @@ -2,7 +2,7 @@ import { For, memo, SourceDirectoryContext, useContext } from "@alloy-js/core"; import { basename } from "pathe"; import { getSourceDirectoryData } from "../source-directory-data.js"; -import { TSModuleScope } from "../symbols/index.js"; +import type { TSModuleScope } from "../symbols/index.js"; import { ExportStatement } from "./ExportStatement.js"; import { SourceFile } from "./SourceFile.js"; diff --git a/packages/typescript/src/components/BlockScope.tsx b/packages/typescript/src/components/BlockScope.tsx index c768187ef..ee29c1fc8 100644 --- a/packages/typescript/src/components/BlockScope.tsx +++ b/packages/typescript/src/components/BlockScope.tsx @@ -1,9 +1,9 @@ -import { - Block, +import type { BlockProps, ScopePropsWithInfo, ScopePropsWithValue, } from "@alloy-js/core"; +import { Block } from "@alloy-js/core"; import { LexicalScope } from "./LexicalScope.jsx"; diff --git a/packages/typescript/src/components/CallSignature.tsx b/packages/typescript/src/components/CallSignature.tsx index 7d83f191c..1026177e9 100644 --- a/packages/typescript/src/components/CallSignature.tsx +++ b/packages/typescript/src/components/CallSignature.tsx @@ -1,6 +1,6 @@ import { type Children } from "@alloy-js/core"; -import { +import type { ParameterDescriptor, TypeParameterDescriptor, } from "../parameter-descriptor.js"; diff --git a/packages/typescript/src/components/ClassDeclaration.tsx b/packages/typescript/src/components/ClassDeclaration.tsx index f02c5af65..e445cdbc4 100644 --- a/packages/typescript/src/components/ClassDeclaration.tsx +++ b/packages/typescript/src/components/ClassDeclaration.tsx @@ -1,12 +1,10 @@ +import type { Children, Namekey, Refkey } from "@alloy-js/core"; import { Block, - Children, For, MemberDeclaration, Name, - Namekey, Prose, - Refkey, Show, splitProps, } from "@alloy-js/core"; @@ -18,8 +16,10 @@ import { } from "../symbols/index.js"; import { TSSymbolFlags } from "../symbols/ts-output-symbol.js"; import { getCallSignatureProps } from "../utils.js"; -import { CallSignature, CallSignatureProps } from "./CallSignature.jsx"; -import { CommonDeclarationProps, Declaration } from "./Declaration.jsx"; +import type { CallSignatureProps } from "./CallSignature.jsx"; +import { CallSignature } from "./CallSignature.jsx"; +import type { CommonDeclarationProps } from "./Declaration.jsx"; +import { Declaration } from "./Declaration.jsx"; import { JSDoc } from "./JSDoc.jsx"; import { JSDocParams } from "./JSDocParam.jsx"; import { LexicalScope } from "./LexicalScope.jsx"; diff --git a/packages/typescript/src/components/CommaList.tsx b/packages/typescript/src/components/CommaList.tsx index 769a474e1..101a8c088 100644 --- a/packages/typescript/src/components/CommaList.tsx +++ b/packages/typescript/src/components/CommaList.tsx @@ -1,4 +1,5 @@ -import { Children, List, splitProps } from "@alloy-js/core"; +import type { Children } from "@alloy-js/core"; +import { List, splitProps } from "@alloy-js/core"; export interface CommaListProps { children: Children; diff --git a/packages/typescript/src/components/Declaration.tsx b/packages/typescript/src/components/Declaration.tsx index c712307c4..53be17e97 100644 --- a/packages/typescript/src/components/Declaration.tsx +++ b/packages/typescript/src/components/Declaration.tsx @@ -1,16 +1,10 @@ -import { - Children, - Declaration as CoreDeclaration, - Namekey, - Refkey, -} from "@alloy-js/core"; - -import { TypeScriptElements, useTSNamePolicy } from "../name-policy.js"; -import { - createTypeSymbol, - createValueSymbol, - TSOutputSymbol, -} from "../symbols/index.js"; +import type { Children, Namekey, Refkey } from "@alloy-js/core"; +import { Declaration as CoreDeclaration } from "@alloy-js/core"; + +import type { TypeScriptElements } from "../name-policy.js"; +import { useTSNamePolicy } from "../name-policy.js"; +import type { TSOutputSymbol } from "../symbols/index.js"; +import { createTypeSymbol, createValueSymbol } from "../symbols/index.js"; // eslint-disable-next-line @typescript-eslint/no-unused-vars import { EnumDeclaration } from "./EnumDeclaration.jsx"; // imports for documentation diff --git a/packages/typescript/src/components/EnumDeclaration.tsx b/packages/typescript/src/components/EnumDeclaration.tsx index 533f69755..4a3919ec1 100644 --- a/packages/typescript/src/components/EnumDeclaration.tsx +++ b/packages/typescript/src/components/EnumDeclaration.tsx @@ -9,7 +9,7 @@ import { import { useTSNamePolicy } from "../name-policy.js"; import { createTypeAndValueSymbol } from "../symbols/index.js"; -import { CommonDeclarationProps } from "./Declaration.js"; +import type { CommonDeclarationProps } from "./Declaration.js"; import { EnumMember } from "./EnumMember.jsx"; import { JSDoc } from "./JSDoc.jsx"; import { MemberScope } from "./MemberScope.jsx"; diff --git a/packages/typescript/src/components/EnumMember.tsx b/packages/typescript/src/components/EnumMember.tsx index 7f22e1b1a..dae5ca0a0 100644 --- a/packages/typescript/src/components/EnumMember.tsx +++ b/packages/typescript/src/components/EnumMember.tsx @@ -1,4 +1,5 @@ -import { Children, Namekey, Refkey, Show } from "@alloy-js/core"; +import type { Children, Namekey, Refkey } from "@alloy-js/core"; +import { Show } from "@alloy-js/core"; import { useTSNamePolicy } from "../name-policy.js"; import { createStaticMemberSymbol } from "../symbols/index.js"; diff --git a/packages/typescript/src/components/ExportStatement.tsx b/packages/typescript/src/components/ExportStatement.tsx index 0d0424615..5da288712 100644 --- a/packages/typescript/src/components/ExportStatement.tsx +++ b/packages/typescript/src/components/ExportStatement.tsx @@ -1,6 +1,6 @@ import { dirname, relative } from "pathe"; -import { TSModuleScope, TSOutputSymbol } from "../symbols/index.js"; +import type { TSModuleScope, TSOutputSymbol } from "../symbols/index.js"; import { modulePath } from "../utils.js"; import { useSourceFile } from "./SourceFile.js"; diff --git a/packages/typescript/src/components/FunctionBase.tsx b/packages/typescript/src/components/FunctionBase.tsx index 5be0a7566..1256fa131 100644 --- a/packages/typescript/src/components/FunctionBase.tsx +++ b/packages/typescript/src/components/FunctionBase.tsx @@ -1,3 +1,4 @@ +import type { SymbolSlot } from "@alloy-js/core"; import { Block, code, @@ -6,7 +7,6 @@ import { Indent, onCleanup, Show, - SymbolSlot, taggedComponent, type Children, } from "@alloy-js/core"; @@ -16,12 +16,9 @@ import type { FunctionTypeParameterDescriptor, ParameterDescriptor, } from "../parameter-descriptor.js"; -import { TypeParameterDescriptor } from "../parameter-descriptor.js"; -import { - createValueSymbol, - TSOutputSymbol, - TSSymbolFlags, -} from "../symbols/index.js"; +import type { TypeParameterDescriptor } from "../parameter-descriptor.js"; +import type { TSOutputSymbol } from "../symbols/index.js"; +import { createValueSymbol, TSSymbolFlags } from "../symbols/index.js"; import { TypeRefContext } from "./TypeRefContext.jsx"; const functionParametersTag = Symbol(); diff --git a/packages/typescript/src/components/FunctionCallExpression.tsx b/packages/typescript/src/components/FunctionCallExpression.tsx index 7168ca526..9c38d7797 100644 --- a/packages/typescript/src/components/FunctionCallExpression.tsx +++ b/packages/typescript/src/components/FunctionCallExpression.tsx @@ -1,4 +1,5 @@ -import { Children, For, Indent, Wrap } from "@alloy-js/core"; +import type { Children } from "@alloy-js/core"; +import { For, Indent, Wrap } from "@alloy-js/core"; export interface FunctionCallExpressionProps { target: Children; diff --git a/packages/typescript/src/components/FunctionDeclaration.tsx b/packages/typescript/src/components/FunctionDeclaration.tsx index 23eeea20a..5136887e8 100644 --- a/packages/typescript/src/components/FunctionDeclaration.tsx +++ b/packages/typescript/src/components/FunctionDeclaration.tsx @@ -9,8 +9,10 @@ import { } from "@alloy-js/core"; import { getCallSignatureProps } from "../utils.js"; -import { CallSignature, CallSignatureProps } from "./CallSignature.jsx"; -import { CommonDeclarationProps, Declaration } from "./Declaration.js"; +import type { CallSignatureProps } from "./CallSignature.jsx"; +import { CallSignature } from "./CallSignature.jsx"; +import type { CommonDeclarationProps } from "./Declaration.js"; +import { Declaration } from "./Declaration.js"; import { FunctionBody, FunctionParameters, diff --git a/packages/typescript/src/components/FunctionExpression.tsx b/packages/typescript/src/components/FunctionExpression.tsx index 876c56282..eac2c1c4d 100644 --- a/packages/typescript/src/components/FunctionExpression.tsx +++ b/packages/typescript/src/components/FunctionExpression.tsx @@ -6,7 +6,8 @@ import { } from "@alloy-js/core"; import { getCallSignatureProps } from "../utils.js"; -import { CallSignature, CallSignatureProps } from "./CallSignature.jsx"; +import type { CallSignatureProps } from "./CallSignature.jsx"; +import { CallSignature } from "./CallSignature.jsx"; import { FunctionBody, FunctionParameters, diff --git a/packages/typescript/src/components/FunctionType.tsx b/packages/typescript/src/components/FunctionType.tsx index 3dd17893a..6b17df440 100644 --- a/packages/typescript/src/components/FunctionType.tsx +++ b/packages/typescript/src/components/FunctionType.tsx @@ -7,7 +7,8 @@ import { } from "@alloy-js/core"; import { getCallSignatureProps } from "../utils.js"; -import { CallSignature, CallSignatureProps } from "./CallSignature.jsx"; +import type { CallSignatureProps } from "./CallSignature.jsx"; +import { CallSignature } from "./CallSignature.jsx"; import { FunctionParameters, FunctionTypeParameters, diff --git a/packages/typescript/src/components/ImportStatement.tsx b/packages/typescript/src/components/ImportStatement.tsx index 20c28623e..51af7c92a 100644 --- a/packages/typescript/src/components/ImportStatement.tsx +++ b/packages/typescript/src/components/ImportStatement.tsx @@ -7,7 +7,7 @@ import { } from "@alloy-js/core"; import { relative } from "pathe"; -import { +import type { ImportedSymbol, ImportRecords, TSPackageScope, diff --git a/packages/typescript/src/components/Interface.tsx b/packages/typescript/src/components/Interface.tsx index 321a310dd..14c136678 100644 --- a/packages/typescript/src/components/Interface.tsx +++ b/packages/typescript/src/components/Interface.tsx @@ -1,6 +1,6 @@ +import type { Children, Namekey, Refkey } from "@alloy-js/core"; import { Block, - Children, childrenArray, createSymbol, createSymbolSlot, @@ -9,17 +9,16 @@ import { findKeyedChild, findUnkeyedChildren, Name, - Namekey, - Refkey, Show, takeSymbols, } from "@alloy-js/core"; import { useTSNamePolicy } from "../name-policy.js"; -import { TypeParameterDescriptor } from "../parameter-descriptor.js"; +import type { TypeParameterDescriptor } from "../parameter-descriptor.js"; import { useTSLexicalScope, useTSMemberScope } from "../symbols/scopes.js"; import { TSOutputSymbol, TSSymbolFlags } from "../symbols/ts-output-symbol.js"; -import { CommonDeclarationProps, Declaration } from "./Declaration.js"; +import type { CommonDeclarationProps } from "./Declaration.js"; +import { Declaration } from "./Declaration.js"; import { TypeParameters } from "./FunctionBase.jsx"; import { JSDoc } from "./JSDoc.jsx"; import { MemberDeclaration } from "./MemberDeclaration.jsx"; diff --git a/packages/typescript/src/components/InterfaceMethod.tsx b/packages/typescript/src/components/InterfaceMethod.tsx index dd0eed1e9..ca5878059 100644 --- a/packages/typescript/src/components/InterfaceMethod.tsx +++ b/packages/typescript/src/components/InterfaceMethod.tsx @@ -1,16 +1,16 @@ +import type { Namekey, Refkey } from "@alloy-js/core"; import { childrenArray, findKeyedChild, MemberName, - Namekey, Prose, - Refkey, Show, type Children, } from "@alloy-js/core"; import { getCallSignatureProps } from "../utils.js"; -import { CallSignature, CallSignatureProps } from "./CallSignature.jsx"; +import type { CallSignatureProps } from "./CallSignature.jsx"; +import { CallSignature } from "./CallSignature.jsx"; import { FunctionParameters, FunctionTypeParameters, diff --git a/packages/typescript/src/components/JSDocParam.tsx b/packages/typescript/src/components/JSDocParam.tsx index 4b04c8c08..c37249718 100644 --- a/packages/typescript/src/components/JSDocParam.tsx +++ b/packages/typescript/src/components/JSDocParam.tsx @@ -1,6 +1,6 @@ import { For, Prose, Show, type Children } from "@alloy-js/core"; -import { ParameterDescriptor } from "../parameter-descriptor.js"; +import type { ParameterDescriptor } from "../parameter-descriptor.js"; export interface JSDocParamsProps { parameters: ParameterDescriptor[] | string[]; diff --git a/packages/typescript/src/components/LexicalScope.tsx b/packages/typescript/src/components/LexicalScope.tsx index c089b3e9e..4e3606ec1 100644 --- a/packages/typescript/src/components/LexicalScope.tsx +++ b/packages/typescript/src/components/LexicalScope.tsx @@ -1,4 +1,5 @@ -import { Scope, ScopePropsWithInfo, ScopePropsWithValue } from "@alloy-js/core"; +import type { ScopePropsWithInfo, ScopePropsWithValue } from "@alloy-js/core"; +import { Scope } from "@alloy-js/core"; import { createLexicalScope, TSLexicalScope } from "../symbols/index.js"; diff --git a/packages/typescript/src/components/MemberDeclaration.tsx b/packages/typescript/src/components/MemberDeclaration.tsx index 8884468ec..34a10b8d3 100644 --- a/packages/typescript/src/components/MemberDeclaration.tsx +++ b/packages/typescript/src/components/MemberDeclaration.tsx @@ -1,15 +1,13 @@ -import { - MemberDeclaration as CoreMemberDeclaration, +import type { MemberDeclarationPropsWithInfo as CoreMemberDeclarationPropsWithInfo, MemberDeclarationPropsWithSymbol as CoreMemberDeclarationPropsWithSymbol, } from "@alloy-js/core"; +import { MemberDeclaration as CoreMemberDeclaration } from "@alloy-js/core"; -import { TypeScriptElements, useTSNamePolicy } from "../name-policy.js"; -import { - createStaticMemberSymbol, - TSOutputSymbol, - TSSymbolFlags, -} from "../symbols/index.js"; +import type { TypeScriptElements } from "../name-policy.js"; +import { useTSNamePolicy } from "../name-policy.js"; +import type { TSOutputSymbol } from "../symbols/index.js"; +import { createStaticMemberSymbol, TSSymbolFlags } from "../symbols/index.js"; export interface MemberDeclarationPropsWithInfo extends CoreMemberDeclarationPropsWithInfo { /** diff --git a/packages/typescript/src/components/MemberExpression.tsx b/packages/typescript/src/components/MemberExpression.tsx index e2e675d85..569b4f083 100644 --- a/packages/typescript/src/components/MemberExpression.tsx +++ b/packages/typescript/src/components/MemberExpression.tsx @@ -1,14 +1,8 @@ -import { - Children, - computed, - createAccessExpression, - For, - OutputSymbol, - Refkey, - Show, -} from "@alloy-js/core"; - -import { TSOutputSymbol, TSSymbolFlags } from "../symbols/ts-output-symbol.js"; +import type { Children, OutputSymbol, Refkey } from "@alloy-js/core"; +import { computed, createAccessExpression, For, Show } from "@alloy-js/core"; + +import type { TSOutputSymbol } from "../symbols/ts-output-symbol.js"; +import { TSSymbolFlags } from "../symbols/ts-output-symbol.js"; import { isValidJSIdentifier } from "../utils.js"; export interface MemberExpressionProps { diff --git a/packages/typescript/src/components/MemberScope.tsx b/packages/typescript/src/components/MemberScope.tsx index 5305c2fe4..bcc51257e 100644 --- a/packages/typescript/src/components/MemberScope.tsx +++ b/packages/typescript/src/components/MemberScope.tsx @@ -1,12 +1,9 @@ -import { - Children, - MemberScope as CoreMemberScope, - createScope, -} from "@alloy-js/core"; +import type { Children } from "@alloy-js/core"; +import { MemberScope as CoreMemberScope, createScope } from "@alloy-js/core"; import { useTSLexicalScopeIfPresent } from "../symbols/scopes.js"; import { TSMemberScope } from "../symbols/ts-member-scope.js"; -import { TSOutputSymbol } from "../symbols/ts-output-symbol.js"; +import type { TSOutputSymbol } from "../symbols/ts-output-symbol.js"; export interface MemberScopeProps { children: Children; diff --git a/packages/typescript/src/components/NewExpression.tsx b/packages/typescript/src/components/NewExpression.tsx index 96f7333d4..8ebf9ed23 100644 --- a/packages/typescript/src/components/NewExpression.tsx +++ b/packages/typescript/src/components/NewExpression.tsx @@ -4,10 +4,8 @@ import { } from "@alloy-js/core"; import { createValueSymbol } from "../symbols/index.js"; -import { - FunctionCallExpression, - FunctionCallExpressionProps, -} from "./FunctionCallExpression.jsx"; +import type { FunctionCallExpressionProps } from "./FunctionCallExpression.jsx"; +import { FunctionCallExpression } from "./FunctionCallExpression.jsx"; export interface NewExpressionProps extends FunctionCallExpressionProps {} diff --git a/packages/typescript/src/components/ObjectExpression.tsx b/packages/typescript/src/components/ObjectExpression.tsx index c3ac1f9bb..2d5c77d81 100644 --- a/packages/typescript/src/components/ObjectExpression.tsx +++ b/packages/typescript/src/components/ObjectExpression.tsx @@ -1,14 +1,12 @@ +import type { Children, Namekey, Refkey } from "@alloy-js/core"; import { Block, - Children, computed, emitSymbol, For, isNamekey, Match, moveTakenMembersTo, - Namekey, - Refkey, Switch, takeSymbols, } from "@alloy-js/core"; diff --git a/packages/typescript/src/components/PackageDirectory.tsx b/packages/typescript/src/components/PackageDirectory.tsx index 7eb21c385..6b13a94e1 100644 --- a/packages/typescript/src/components/PackageDirectory.tsx +++ b/packages/typescript/src/components/PackageDirectory.tsx @@ -1,9 +1,7 @@ +import type { Children, ComponentContext, Ref } from "@alloy-js/core"; import { - Children, - ComponentContext, createNamedContext, createScope, - Ref, Scope, shallowRef, SourceDirectory, @@ -15,10 +13,12 @@ import { import { join } from "pathe"; import { PackageMetadataContext } from "../context/package-metadata.js"; -import { ExternalPackage, getPackageScope } from "../create-package.js"; +import type { ExternalPackage } from "../create-package.js"; +import { getPackageScope } from "../create-package.js"; import { TSPackageScope } from "../symbols/index.js"; import { modulePath } from "../utils.js"; -import { PackageJsonFile, PackageJsonFileProps } from "./PackageJson.js"; +import type { PackageJsonFileProps } from "./PackageJson.js"; +import { PackageJsonFile } from "./PackageJson.js"; import { TSConfigJson } from "./TsConfigJson.js"; export interface PackageDirectoryProps extends PackageJsonFileProps { diff --git a/packages/typescript/src/components/PropertyName.tsx b/packages/typescript/src/components/PropertyName.tsx index 9c72d7575..11ec917bd 100644 --- a/packages/typescript/src/components/PropertyName.tsx +++ b/packages/typescript/src/components/PropertyName.tsx @@ -1,6 +1,6 @@ import { MemberDeclarationContext, memo, useContext } from "@alloy-js/core"; -import { TSOutputSymbol } from "../symbols/ts-output-symbol.js"; +import type { TSOutputSymbol } from "../symbols/ts-output-symbol.js"; import { isValidJSIdentifier } from "../utils.js"; export interface PropertyNameProps { diff --git a/packages/typescript/src/components/Reference.tsx b/packages/typescript/src/components/Reference.tsx index 85c2625c5..b03132d79 100644 --- a/packages/typescript/src/components/Reference.tsx +++ b/packages/typescript/src/components/Reference.tsx @@ -1,4 +1,5 @@ -import { computed, emitSymbol, Refkey } from "@alloy-js/core"; +import type { Refkey } from "@alloy-js/core"; +import { computed, emitSymbol } from "@alloy-js/core"; import { isTypeRefContext } from "../context/type-ref-context.js"; import { ref } from "../symbols/index.js"; diff --git a/packages/typescript/src/components/SourceFile.tsx b/packages/typescript/src/components/SourceFile.tsx index 414d2455d..3ea59cf09 100644 --- a/packages/typescript/src/components/SourceFile.tsx +++ b/packages/typescript/src/components/SourceFile.tsx @@ -1,5 +1,5 @@ +import type { ComponentContext } from "@alloy-js/core"; import { - ComponentContext, SourceFile as CoreSourceFile, createNamedContext, createScope, diff --git a/packages/typescript/src/components/TypeDeclaration.tsx b/packages/typescript/src/components/TypeDeclaration.tsx index 152de18d9..34fa06069 100644 --- a/packages/typescript/src/components/TypeDeclaration.tsx +++ b/packages/typescript/src/components/TypeDeclaration.tsx @@ -1,6 +1,7 @@ import { Name, Show } from "@alloy-js/core"; -import { CommonDeclarationProps, Declaration } from "./Declaration.js"; +import type { CommonDeclarationProps } from "./Declaration.js"; +import { Declaration } from "./Declaration.js"; import { JSDoc } from "./JSDoc.jsx"; import { ensureTypeRefContext } from "./TypeRefContext.jsx"; diff --git a/packages/typescript/src/components/ValueExpression.tsx b/packages/typescript/src/components/ValueExpression.tsx index 45d7eac29..6ab1a57de 100644 --- a/packages/typescript/src/components/ValueExpression.tsx +++ b/packages/typescript/src/components/ValueExpression.tsx @@ -1,4 +1,5 @@ -import { Children, memo } from "@alloy-js/core"; +import type { Children } from "@alloy-js/core"; +import { memo } from "@alloy-js/core"; import { ArrayExpression } from "./ArrayExpression.js"; import { ObjectExpression } from "./ObjectExpression.js"; diff --git a/packages/typescript/src/components/VarDeclaration.tsx b/packages/typescript/src/components/VarDeclaration.tsx index c851913eb..3951ee645 100644 --- a/packages/typescript/src/components/VarDeclaration.tsx +++ b/packages/typescript/src/components/VarDeclaration.tsx @@ -1,5 +1,5 @@ +import type { Children } from "@alloy-js/core"; import { - Children, Declaration as CoreDeclaration, createSymbolSlot, Name, @@ -9,7 +9,7 @@ import { import { useTSNamePolicy } from "../name-policy.js"; import { createValueSymbol } from "../symbols/index.js"; import { TSSymbolFlags } from "../symbols/ts-output-symbol.js"; -import { CommonDeclarationProps } from "./Declaration.js"; +import type { CommonDeclarationProps } from "./Declaration.js"; import { JSDoc } from "./JSDoc.jsx"; import { TypeRefContext } from "./TypeRefContext.jsx"; diff --git a/packages/typescript/src/components/index.ts b/packages/typescript/src/components/index.ts index 802b54ccc..e042e6f4d 100644 --- a/packages/typescript/src/components/index.ts +++ b/packages/typescript/src/components/index.ts @@ -1,4 +1,4 @@ -export * from "../parameter-descriptor.js"; +export type * from "../parameter-descriptor.js"; export * from "./ArrayExpression.js"; export * from "./ArrowFunction.jsx"; export * from "./BarrelFile.js"; diff --git a/packages/typescript/src/context/package-metadata.ts b/packages/typescript/src/context/package-metadata.ts index f9b59f258..3ab68c0ff 100644 --- a/packages/typescript/src/context/package-metadata.ts +++ b/packages/typescript/src/context/package-metadata.ts @@ -1,6 +1,7 @@ -import { ComponentContext, createNamedContext } from "@alloy-js/core"; +import type { ComponentContext } from "@alloy-js/core"; +import { createNamedContext } from "@alloy-js/core"; -import { TSPackageScope } from "../symbols/ts-package-scope.js"; +import type { TSPackageScope } from "../symbols/ts-package-scope.js"; export interface PackageMetadataContext { versionSpecifiers: Map; diff --git a/packages/typescript/src/context/type-ref-context.tsx b/packages/typescript/src/context/type-ref-context.tsx index d8d5b22dc..95aecb26a 100644 --- a/packages/typescript/src/context/type-ref-context.tsx +++ b/packages/typescript/src/context/type-ref-context.tsx @@ -1,8 +1,5 @@ -import { - ComponentContext, - createNamedContext, - useContext, -} from "@alloy-js/core"; +import type { ComponentContext } from "@alloy-js/core"; +import { createNamedContext, useContext } from "@alloy-js/core"; interface TypeRefContext { /** If in a type context */ diff --git a/packages/typescript/src/create-package.ts b/packages/typescript/src/create-package.ts index 2d64f540f..e3f3bc740 100644 --- a/packages/typescript/src/create-package.ts +++ b/packages/typescript/src/create-package.ts @@ -1,12 +1,11 @@ +import type { OutputMemberSpace, SymbolCreator } from "@alloy-js/core"; import { type Binder, createScope, createSymbol, getSymbolCreatorSymbol, - OutputMemberSpace, type Refkey, refkey, - SymbolCreator, } from "@alloy-js/core"; import { diff --git a/packages/typescript/src/index.ts b/packages/typescript/src/index.ts index ad089431e..c9f8462ba 100644 --- a/packages/typescript/src/index.ts +++ b/packages/typescript/src/index.ts @@ -4,6 +4,6 @@ export * from "./context/index.js"; export * from "./create-package.js"; export * from "./name-conflict-resolver.js"; export * from "./name-policy.js"; -export * from "./parameter-descriptor.js"; +export type * from "./parameter-descriptor.js"; export * from "./source-directory-data.js"; export * from "./symbols/index.js"; diff --git a/packages/typescript/src/name-conflict-resolver.ts b/packages/typescript/src/name-conflict-resolver.ts index bb1c7e9e9..084917fb1 100644 --- a/packages/typescript/src/name-conflict-resolver.ts +++ b/packages/typescript/src/name-conflict-resolver.ts @@ -1,6 +1,7 @@ -import { OutputSymbol } from "@alloy-js/core"; +import type { OutputSymbol } from "@alloy-js/core"; -import { TSOutputSymbol, TSSymbolFlags } from "./symbols/index.js"; +import type { TSOutputSymbol } from "./symbols/index.js"; +import { TSSymbolFlags } from "./symbols/index.js"; export function tsNameConflictResolver(name: string, symbols: OutputSymbol[]) { const goodNamedSymbols = (symbols as TSOutputSymbol[]).filter( diff --git a/packages/typescript/src/name-policy.ts b/packages/typescript/src/name-policy.ts index ddf94af2b..d9a00e837 100644 --- a/packages/typescript/src/name-policy.ts +++ b/packages/typescript/src/name-policy.ts @@ -1,4 +1,5 @@ -import { createNamePolicy, NamePolicy, useNamePolicy } from "@alloy-js/core"; +import type { NamePolicy } from "@alloy-js/core"; +import { createNamePolicy, useNamePolicy } from "@alloy-js/core"; import { camelCase, pascalCase } from "change-case"; export type TypeScriptElements = diff --git a/packages/typescript/src/source-directory-data.ts b/packages/typescript/src/source-directory-data.ts index 0a5870b59..657881599 100644 --- a/packages/typescript/src/source-directory-data.ts +++ b/packages/typescript/src/source-directory-data.ts @@ -1,6 +1,7 @@ -import { shallowReactive, SourceDirectoryContext } from "@alloy-js/core"; +import type { SourceDirectoryContext } from "@alloy-js/core"; +import { shallowReactive } from "@alloy-js/core"; -import { TSModuleScope } from "./symbols/index.js"; +import type { TSModuleScope } from "./symbols/index.js"; export interface SourceDirectoryData { modules: Set; diff --git a/packages/typescript/src/symbols/index.ts b/packages/typescript/src/symbols/index.ts index 86777a9fc..1271d2d2b 100644 --- a/packages/typescript/src/symbols/index.ts +++ b/packages/typescript/src/symbols/index.ts @@ -1,10 +1,9 @@ +import type { Namekey, OutputScopeOptions } from "@alloy-js/core"; import { createComponent, createScope, createSymbol, - Namekey, onCleanup, - OutputScopeOptions, toRef, } from "@alloy-js/core"; @@ -12,7 +11,8 @@ import { useLexicalScope, useMemberOwner } from "../utils.js"; import { useTSScope } from "./scopes.js"; import { TSLexicalScope } from "./ts-lexical-scope.js"; import { TSMemberScope } from "./ts-member-scope.js"; -import { CreateTsSymbolOptions, TSOutputSymbol } from "./ts-output-symbol.js"; +import type { CreateTsSymbolOptions } from "./ts-output-symbol.js"; +import { TSOutputSymbol } from "./ts-output-symbol.js"; export * from "./reference.js"; export * from "./scopes.js"; diff --git a/packages/typescript/src/symbols/reference.tsx b/packages/typescript/src/symbols/reference.tsx index 85b378f2a..7996dc8ae 100644 --- a/packages/typescript/src/symbols/reference.tsx +++ b/packages/typescript/src/symbols/reference.tsx @@ -1,10 +1,12 @@ -import { +import type { Children, MemberResolutionContext, MemberResolver, + Refkey, +} from "@alloy-js/core"; +import { memo, onCleanup, - Refkey, resolve, unresolvedRefkey, untrack, @@ -14,10 +16,10 @@ import { import { MemberExpression } from "../components/MemberExpression.jsx"; import { usePackage } from "../components/PackageDirectory.jsx"; import { SourceFileContext } from "../components/SourceFile.jsx"; -import { TSOutputScope } from "./scopes.js"; +import type { TSOutputScope } from "./scopes.js"; import { TSLexicalScope } from "./ts-lexical-scope.js"; import { TSModuleScope } from "./ts-module-scope.js"; -import { TSOutputSymbol } from "./ts-output-symbol.js"; +import type { TSOutputSymbol } from "./ts-output-symbol.js"; import { TSPackageScope } from "./ts-package-scope.js"; export interface RefOptions { diff --git a/packages/typescript/src/symbols/scopes.ts b/packages/typescript/src/symbols/scopes.ts index fa0ff4950..db92fda82 100644 --- a/packages/typescript/src/symbols/scopes.ts +++ b/packages/typescript/src/symbols/scopes.ts @@ -2,8 +2,8 @@ import { useScope } from "@alloy-js/core"; import { TSLexicalScope } from "./ts-lexical-scope.js"; import { TSMemberScope } from "./ts-member-scope.js"; -import { TSModuleScope } from "./ts-module-scope.js"; -import { TSPackageScope } from "./ts-package-scope.js"; +import type { TSModuleScope } from "./ts-module-scope.js"; +import type { TSPackageScope } from "./ts-package-scope.js"; export type TSOutputScope = TSPackageScope | TSModuleScope | TSLexicalScope; diff --git a/packages/typescript/src/symbols/ts-member-scope.ts b/packages/typescript/src/symbols/ts-member-scope.ts index 2ef67b3c7..0c4f51cdc 100644 --- a/packages/typescript/src/symbols/ts-member-scope.ts +++ b/packages/typescript/src/symbols/ts-member-scope.ts @@ -1,8 +1,8 @@ -import { OutputScopeOptions } from "@alloy-js/core"; +import type { OutputScopeOptions } from "@alloy-js/core"; -import { TSOutputScope } from "./scopes.js"; +import type { TSOutputScope } from "./scopes.js"; import { TSLexicalScope } from "./ts-lexical-scope.js"; -import { TSOutputSymbol } from "./ts-output-symbol.js"; +import type { TSOutputSymbol } from "./ts-output-symbol.js"; /** * A member scope for TypeScript. Member declarations create symbols in this diff --git a/packages/typescript/src/symbols/ts-module-scope.ts b/packages/typescript/src/symbols/ts-module-scope.ts index 8be93b49c..7bea73605 100644 --- a/packages/typescript/src/symbols/ts-module-scope.ts +++ b/packages/typescript/src/symbols/ts-module-scope.ts @@ -1,9 +1,5 @@ -import { - createSymbol, - reactive, - Refkey, - shallowReactive, -} from "@alloy-js/core"; +import type { Refkey } from "@alloy-js/core"; +import { createSymbol, reactive, shallowReactive } from "@alloy-js/core"; import { TSLexicalScope } from "./ts-lexical-scope.js"; import { TSOutputSymbol, TSSymbolFlags } from "./ts-output-symbol.js"; diff --git a/packages/typescript/src/symbols/ts-output-symbol.ts b/packages/typescript/src/symbols/ts-output-symbol.ts index f62c6bcf4..7de01121f 100644 --- a/packages/typescript/src/symbols/ts-output-symbol.ts +++ b/packages/typescript/src/symbols/ts-output-symbol.ts @@ -1,9 +1,7 @@ +import type { Namekey, OutputSpace, OutputSymbolOptions } from "@alloy-js/core"; import { createSymbol, - Namekey, - OutputSpace, OutputSymbol, - OutputSymbolOptions, track, TrackOpTypes, trigger, @@ -11,7 +9,7 @@ import { watch, } from "@alloy-js/core"; -import { TSOutputScope } from "./scopes.js"; +import type { TSOutputScope } from "./scopes.js"; import { TSModuleScope } from "./ts-module-scope.js"; // prettier-ignore diff --git a/packages/typescript/src/symbols/ts-package-scope.ts b/packages/typescript/src/symbols/ts-package-scope.ts index d1ab27ccc..2dd200dc0 100644 --- a/packages/typescript/src/symbols/ts-package-scope.ts +++ b/packages/typescript/src/symbols/ts-package-scope.ts @@ -1,12 +1,8 @@ -import { - OutputScope, - OutputScopeOptions, - Refkey, - shallowReactive, -} from "@alloy-js/core"; +import type { OutputScopeOptions, Refkey } from "@alloy-js/core"; +import { OutputScope, shallowReactive } from "@alloy-js/core"; import { modulePath } from "../utils.js"; -import { TSModuleScope } from "./ts-module-scope.js"; +import type { TSModuleScope } from "./ts-module-scope.js"; export interface TSPackageScopeOptions extends OutputScopeOptions { builtin?: boolean; diff --git a/packages/typescript/src/utils.ts b/packages/typescript/src/utils.ts index 8d2a2bfe6..547abd2e0 100644 --- a/packages/typescript/src/utils.ts +++ b/packages/typescript/src/utils.ts @@ -5,7 +5,7 @@ import { useScope, } from "@alloy-js/core"; -import { CallSignatureProps } from "./components/CallSignature.jsx"; +import type { CallSignatureProps } from "./components/CallSignature.jsx"; import { TSLexicalScope } from "./symbols/ts-lexical-scope.js"; import { TSOutputSymbol } from "./symbols/ts-output-symbol.js"; diff --git a/packages/typescript/test/arrow-function.test.tsx b/packages/typescript/test/arrow-function.test.tsx index 0afe7c0cf..fd36377cf 100644 --- a/packages/typescript/test/arrow-function.test.tsx +++ b/packages/typescript/test/arrow-function.test.tsx @@ -1,9 +1,10 @@ -import { Props, refkey, render, StatementList } from "@alloy-js/core"; +import type { Props } from "@alloy-js/core"; +import { refkey, render, StatementList } from "@alloy-js/core"; import { describe, expect, it } from "vitest"; import { ArrowFunction } from "../src/components/ArrowFunction.jsx"; import { VarDeclaration } from "../src/index.js"; -import { ParameterDescriptor } from "../src/parameter-descriptor.js"; +import type { ParameterDescriptor } from "../src/parameter-descriptor.js"; import { TestFile } from "./utils.js"; it("create basic function", () => { diff --git a/packages/typescript/test/function-declaration.test.tsx b/packages/typescript/test/function-declaration.test.tsx index 117cb016c..fa8fef05e 100644 --- a/packages/typescript/test/function-declaration.test.tsx +++ b/packages/typescript/test/function-declaration.test.tsx @@ -1,10 +1,10 @@ +import type { Props } from "@alloy-js/core"; import { code, List, memberRefkey, namekey, Output, - Props, refkey, render, StatementList, @@ -21,7 +21,7 @@ import { TypeDeclaration, VarDeclaration, } from "../src/index.js"; -import { ParameterDescriptor } from "../src/parameter-descriptor.js"; +import type { ParameterDescriptor } from "../src/parameter-descriptor.js"; import { TestFile } from "./utils.js"; it("works", () => { diff --git a/packages/typescript/test/function-expression.test.tsx b/packages/typescript/test/function-expression.test.tsx index 0c68ea541..b27eaa5ec 100644 --- a/packages/typescript/test/function-expression.test.tsx +++ b/packages/typescript/test/function-expression.test.tsx @@ -1,9 +1,10 @@ -import { Props, refkey, render, StatementList } from "@alloy-js/core"; +import type { Props } from "@alloy-js/core"; +import { refkey, render, StatementList } from "@alloy-js/core"; import { describe, expect, it } from "vitest"; import { FunctionExpression } from "../src/components/FunctionExpression.jsx"; import { VarDeclaration } from "../src/index.js"; -import { ParameterDescriptor } from "../src/parameter-descriptor.js"; +import type { ParameterDescriptor } from "../src/parameter-descriptor.js"; import { TestFile } from "./utils.js"; it("create basic function", () => { diff --git a/packages/typescript/test/function-type.test.tsx b/packages/typescript/test/function-type.test.tsx index 1e65b36df..2d3c85f14 100644 --- a/packages/typescript/test/function-type.test.tsx +++ b/packages/typescript/test/function-type.test.tsx @@ -1,9 +1,10 @@ -import { Props, refkey } from "@alloy-js/core"; +import type { Props } from "@alloy-js/core"; +import { refkey } from "@alloy-js/core"; import { describe, expect, it } from "vitest"; import { FunctionType } from "../src/components/FunctionType.jsx"; import * as ts from "../src/components/index.js"; -import { ParameterDescriptor } from "../src/components/index.js"; +import type { ParameterDescriptor } from "../src/components/index.js"; import { TestFile } from "./utils.js"; it("render basic", () => { diff --git a/packages/typescript/test/interface.test.tsx b/packages/typescript/test/interface.test.tsx index 14b6ccb72..592517b8f 100644 --- a/packages/typescript/test/interface.test.tsx +++ b/packages/typescript/test/interface.test.tsx @@ -1,14 +1,14 @@ +import type { Props } from "@alloy-js/core"; import { namekey, NamePolicyContext, - Props, refkey, StatementList, } from "@alloy-js/core"; import { describe, expect, it } from "vitest"; import * as ts from "../src/components/index.js"; -import { ParameterDescriptor } from "../src/components/index.js"; +import type { ParameterDescriptor } from "../src/components/index.js"; import { Reference } from "../src/components/Reference.js"; import { createTSNamePolicy } from "../src/name-policy.js"; import { TestFile } from "./utils.js"; diff --git a/packages/typescript/test/member-expression.test.tsx b/packages/typescript/test/member-expression.test.tsx index a16ccc440..bc6f772b8 100644 --- a/packages/typescript/test/member-expression.test.tsx +++ b/packages/typescript/test/member-expression.test.tsx @@ -11,13 +11,13 @@ import { describe, expect, it } from "vitest"; import { InterfaceMember, ObjectExpression } from "../src/components/index.js"; import { MemberExpression } from "../src/components/MemberExpression.jsx"; import { VarDeclaration } from "../src/components/VarDeclaration.jsx"; +import type { ParameterDescriptor } from "../src/index.js"; import { ClassDeclaration, ClassField, FunctionDeclaration, InterfaceDeclaration, ObjectProperty, - ParameterDescriptor, SourceFile, } from "../src/index.js"; import { TestFile } from "./utils.js"; diff --git a/packages/typescript/test/name-conflict.test.tsx b/packages/typescript/test/name-conflict.test.tsx index b97ba8348..fa3dcaf2f 100644 --- a/packages/typescript/test/name-conflict.test.tsx +++ b/packages/typescript/test/name-conflict.test.tsx @@ -1,14 +1,15 @@ -import { Output, OutputSymbol } from "@alloy-js/core"; +import type { OutputSymbol } from "@alloy-js/core"; +import { Output } from "@alloy-js/core"; import { camelCase } from "change-case"; import { expect, it } from "vitest"; +import type { TSOutputSymbol } from "../src/index.js"; import { FunctionDeclaration, SourceFile, - TSOutputSymbol, TSSymbolFlags, } from "../src/index.js"; -import { ParameterDescriptor } from "../src/parameter-descriptor.js"; +import type { ParameterDescriptor } from "../src/parameter-descriptor.js"; it("handles custom name conflict resolver based on metadata", () => { function resolver(name: string, symbols: OutputSymbol[]) { diff --git a/packages/typescript/test/utils.tsx b/packages/typescript/test/utils.tsx index e7d6b232f..a45b4c938 100644 --- a/packages/typescript/test/utils.tsx +++ b/packages/typescript/test/utils.tsx @@ -1,4 +1,5 @@ -import { Children, Output } from "@alloy-js/core"; +import type { Children } from "@alloy-js/core"; +import { Output } from "@alloy-js/core"; import * as ts from "../src/index.js"; diff --git a/packages/typescript/testing/create-wrapper.test.tsx b/packages/typescript/testing/create-wrapper.test.tsx index c4bb6464b..56523d213 100644 --- a/packages/typescript/testing/create-wrapper.test.tsx +++ b/packages/typescript/testing/create-wrapper.test.tsx @@ -1,4 +1,5 @@ -import { List, Refkey } from "@alloy-js/core"; +import type { Refkey } from "@alloy-js/core"; +import { List } from "@alloy-js/core"; import { d } from "@alloy-js/core/testing"; import { expect, it } from "vitest"; diff --git a/packages/typespec/src/builtins/TypeSpec/Events/decorators.ts b/packages/typespec/src/builtins/TypeSpec/Events/decorators.ts index 08cfc5b19..ee49a4527 100644 --- a/packages/typespec/src/builtins/TypeSpec/Events/decorators.ts +++ b/packages/typespec/src/builtins/TypeSpec/Events/decorators.ts @@ -1,4 +1,4 @@ -import { Descriptor, LibraryFrom } from "../../../index.js"; +import type { Descriptor, LibraryFrom } from "../../../index.js"; const decorators = { events: { kind: "decorator" }, diff --git a/packages/typespec/src/builtins/TypeSpec/Events/index.ts b/packages/typespec/src/builtins/TypeSpec/Events/index.ts index 0bd984ab4..2751df9e4 100644 --- a/packages/typespec/src/builtins/TypeSpec/Events/index.ts +++ b/packages/typespec/src/builtins/TypeSpec/Events/index.ts @@ -1,7 +1,8 @@ -import { LibrarySymbolReference } from "@alloy-js/core"; +import type { LibrarySymbolReference } from "@alloy-js/core"; import { createLibrary } from "../../../index.js"; -import decorators, { LibraryDecorators } from "./decorators.js"; +import type { LibraryDecorators } from "./decorators.js"; +import decorators from "./decorators.js"; type EventsLibrary = LibrarySymbolReference & LibraryDecorators; diff --git a/packages/typespec/src/builtins/TypeSpec/Http/Streams/data-types.ts b/packages/typespec/src/builtins/TypeSpec/Http/Streams/data-types.ts index b5c877026..d5fa27ed5 100644 --- a/packages/typespec/src/builtins/TypeSpec/Http/Streams/data-types.ts +++ b/packages/typespec/src/builtins/TypeSpec/Http/Streams/data-types.ts @@ -1,4 +1,4 @@ -import { Descriptor, LibraryFrom } from "../../../../index.js"; +import type { Descriptor, LibraryFrom } from "../../../../index.js"; const dataTypes = { HttpStream: { kind: "model", members: {} }, diff --git a/packages/typespec/src/builtins/TypeSpec/Http/Streams/index.ts b/packages/typespec/src/builtins/TypeSpec/Http/Streams/index.ts index a0f670505..0e7ed92b9 100644 --- a/packages/typespec/src/builtins/TypeSpec/Http/Streams/index.ts +++ b/packages/typespec/src/builtins/TypeSpec/Http/Streams/index.ts @@ -1,7 +1,8 @@ -import { LibrarySymbolReference } from "@alloy-js/core"; +import type { LibrarySymbolReference } from "@alloy-js/core"; import { createLibrary } from "../../../../index.js"; -import dataTypes, { LibraryDataTypes } from "./data-types.js"; +import type { LibraryDataTypes } from "./data-types.js"; +import dataTypes from "./data-types.js"; type HttpStreamsLibrary = LibrarySymbolReference & LibraryDataTypes; diff --git a/packages/typespec/src/builtins/TypeSpec/Http/data-types.ts b/packages/typespec/src/builtins/TypeSpec/Http/data-types.ts index c66e4a48b..8f2a8026b 100644 --- a/packages/typespec/src/builtins/TypeSpec/Http/data-types.ts +++ b/packages/typespec/src/builtins/TypeSpec/Http/data-types.ts @@ -1,4 +1,4 @@ -import { Descriptor, LibraryFrom } from "../../../index.js"; +import type { Descriptor, LibraryFrom } from "../../../index.js"; const dataTypes = { LinkHeader: { kind: "scalar" }, diff --git a/packages/typespec/src/builtins/TypeSpec/Http/decorators.ts b/packages/typespec/src/builtins/TypeSpec/Http/decorators.ts index 02bd3ba5b..d59b645e9 100644 --- a/packages/typespec/src/builtins/TypeSpec/Http/decorators.ts +++ b/packages/typespec/src/builtins/TypeSpec/Http/decorators.ts @@ -1,4 +1,4 @@ -import { Descriptor, LibraryFrom } from "../../../index.js"; +import type { Descriptor, LibraryFrom } from "../../../index.js"; const decorators = { body: { kind: "decorator" }, diff --git a/packages/typespec/src/builtins/TypeSpec/Http/index.ts b/packages/typespec/src/builtins/TypeSpec/Http/index.ts index d81c83e0b..11906d587 100644 --- a/packages/typespec/src/builtins/TypeSpec/Http/index.ts +++ b/packages/typespec/src/builtins/TypeSpec/Http/index.ts @@ -1,8 +1,10 @@ -import { LibrarySymbolReference } from "@alloy-js/core"; +import type { LibrarySymbolReference } from "@alloy-js/core"; import { createLibrary } from "../../../index.js"; -import dataTypes, { LibraryDataTypes } from "./data-types.js"; -import decorators, { LibraryDecorators } from "./decorators.js"; +import type { LibraryDataTypes } from "./data-types.js"; +import dataTypes from "./data-types.js"; +import type { LibraryDecorators } from "./decorators.js"; +import decorators from "./decorators.js"; type HttpLibrary = LibrarySymbolReference & LibraryDecorators & diff --git a/packages/typespec/src/builtins/TypeSpec/OpenAPI/data-types.ts b/packages/typespec/src/builtins/TypeSpec/OpenAPI/data-types.ts index fd87d2dc9..f6b72ebca 100644 --- a/packages/typespec/src/builtins/TypeSpec/OpenAPI/data-types.ts +++ b/packages/typespec/src/builtins/TypeSpec/OpenAPI/data-types.ts @@ -1,4 +1,4 @@ -import { Descriptor, LibraryFrom } from "../../../index.js"; +import type { Descriptor, LibraryFrom } from "../../../index.js"; const dataTypes = { AdditionalInfo: { kind: "model", members: {} }, diff --git a/packages/typespec/src/builtins/TypeSpec/OpenAPI/decorators.ts b/packages/typespec/src/builtins/TypeSpec/OpenAPI/decorators.ts index 22c9d3804..84d6eecf4 100644 --- a/packages/typespec/src/builtins/TypeSpec/OpenAPI/decorators.ts +++ b/packages/typespec/src/builtins/TypeSpec/OpenAPI/decorators.ts @@ -1,4 +1,4 @@ -import { Descriptor, LibraryFrom } from "../../../index.js"; +import type { Descriptor, LibraryFrom } from "../../../index.js"; const decorators = { defaultResponse: { kind: "decorator" }, diff --git a/packages/typespec/src/builtins/TypeSpec/OpenAPI/index.ts b/packages/typespec/src/builtins/TypeSpec/OpenAPI/index.ts index 2cdc3af9f..3a9e8f1c2 100644 --- a/packages/typespec/src/builtins/TypeSpec/OpenAPI/index.ts +++ b/packages/typespec/src/builtins/TypeSpec/OpenAPI/index.ts @@ -1,8 +1,10 @@ -import { LibrarySymbolReference } from "@alloy-js/core"; +import type { LibrarySymbolReference } from "@alloy-js/core"; import { createLibrary } from "../../../index.js"; -import dataTypes, { LibraryDataTypes } from "./data-types.js"; -import decorators, { LibraryDecorators } from "./decorators.js"; +import type { LibraryDataTypes } from "./data-types.js"; +import dataTypes from "./data-types.js"; +import type { LibraryDecorators } from "./decorators.js"; +import decorators from "./decorators.js"; type OpenAPILibrary = LibrarySymbolReference & LibraryDecorators & diff --git a/packages/typespec/src/builtins/TypeSpec/OpenAPI/openapi3.ts b/packages/typespec/src/builtins/TypeSpec/OpenAPI/openapi3.ts index 8a959a2d4..c4d7c1f21 100644 --- a/packages/typespec/src/builtins/TypeSpec/OpenAPI/openapi3.ts +++ b/packages/typespec/src/builtins/TypeSpec/OpenAPI/openapi3.ts @@ -1,6 +1,7 @@ -import { LibrarySymbolReference } from "@alloy-js/core"; +import type { LibrarySymbolReference } from "@alloy-js/core"; -import { createLibrary, Descriptor, LibraryFrom } from "../../../index.js"; +import type { Descriptor, LibraryFrom } from "../../../index.js"; +import { createLibrary } from "../../../index.js"; // These decorators are contributed to the TypeSpec.OpenAPI namespace by the // @typespec/openapi3 package (not @typespec/openapi). Both packages share the diff --git a/packages/typespec/src/builtins/TypeSpec/Reflection/data-types.ts b/packages/typespec/src/builtins/TypeSpec/Reflection/data-types.ts index 2bbb14ffc..71ad8f9cb 100644 --- a/packages/typespec/src/builtins/TypeSpec/Reflection/data-types.ts +++ b/packages/typespec/src/builtins/TypeSpec/Reflection/data-types.ts @@ -1,4 +1,4 @@ -import { Descriptor, LibraryFrom } from "../../../index.js"; +import type { Descriptor, LibraryFrom } from "../../../index.js"; const dataTypes = { Enum: { kind: "model", members: {} }, diff --git a/packages/typespec/src/builtins/TypeSpec/Reflection/index.ts b/packages/typespec/src/builtins/TypeSpec/Reflection/index.ts index 09661c7a2..de3ebc797 100644 --- a/packages/typespec/src/builtins/TypeSpec/Reflection/index.ts +++ b/packages/typespec/src/builtins/TypeSpec/Reflection/index.ts @@ -1,7 +1,8 @@ -import { LibrarySymbolReference } from "@alloy-js/core"; +import type { LibrarySymbolReference } from "@alloy-js/core"; import { createLibrary } from "../../../index.js"; -import dataTypes, { LibraryDataTypes } from "./data-types.js"; +import type { LibraryDataTypes } from "./data-types.js"; +import dataTypes from "./data-types.js"; type ReflectionLibrary = LibrarySymbolReference & LibraryDataTypes; diff --git a/packages/typespec/src/builtins/TypeSpec/Rest/Resource/data-types.ts b/packages/typespec/src/builtins/TypeSpec/Rest/Resource/data-types.ts index ef839116b..28f1af1d1 100644 --- a/packages/typespec/src/builtins/TypeSpec/Rest/Resource/data-types.ts +++ b/packages/typespec/src/builtins/TypeSpec/Rest/Resource/data-types.ts @@ -1,4 +1,4 @@ -import { Descriptor, LibraryFrom } from "../../../../index.js"; +import type { Descriptor, LibraryFrom } from "../../../../index.js"; const dataTypes = { CollectionWithNextLink: { kind: "model", members: {} }, diff --git a/packages/typespec/src/builtins/TypeSpec/Rest/Resource/index.ts b/packages/typespec/src/builtins/TypeSpec/Rest/Resource/index.ts index a45184acd..a0a03a3a1 100644 --- a/packages/typespec/src/builtins/TypeSpec/Rest/Resource/index.ts +++ b/packages/typespec/src/builtins/TypeSpec/Rest/Resource/index.ts @@ -1,7 +1,8 @@ -import { LibrarySymbolReference } from "@alloy-js/core"; +import type { LibrarySymbolReference } from "@alloy-js/core"; import { createLibrary } from "../../../../index.js"; -import dataTypes, { LibraryDataTypes } from "./data-types.js"; +import type { LibraryDataTypes } from "./data-types.js"; +import dataTypes from "./data-types.js"; type RestResourceLibrary = LibrarySymbolReference & LibraryDataTypes; diff --git a/packages/typespec/src/builtins/TypeSpec/Rest/data-types.ts b/packages/typespec/src/builtins/TypeSpec/Rest/data-types.ts index 3a951d88b..7057b4baa 100644 --- a/packages/typespec/src/builtins/TypeSpec/Rest/data-types.ts +++ b/packages/typespec/src/builtins/TypeSpec/Rest/data-types.ts @@ -1,4 +1,4 @@ -import { Descriptor, LibraryFrom } from "../../../index.js"; +import type { Descriptor, LibraryFrom } from "../../../index.js"; const dataTypes = { ResourceLocation: { kind: "scalar" }, diff --git a/packages/typespec/src/builtins/TypeSpec/Rest/decorators.ts b/packages/typespec/src/builtins/TypeSpec/Rest/decorators.ts index 633b252ba..7dff5f095 100644 --- a/packages/typespec/src/builtins/TypeSpec/Rest/decorators.ts +++ b/packages/typespec/src/builtins/TypeSpec/Rest/decorators.ts @@ -1,4 +1,4 @@ -import { Descriptor, LibraryFrom } from "../../../index.js"; +import type { Descriptor, LibraryFrom } from "../../../index.js"; const decorators = { action: { kind: "decorator" }, diff --git a/packages/typespec/src/builtins/TypeSpec/Rest/index.ts b/packages/typespec/src/builtins/TypeSpec/Rest/index.ts index 85ad68761..a8b8e19ca 100644 --- a/packages/typespec/src/builtins/TypeSpec/Rest/index.ts +++ b/packages/typespec/src/builtins/TypeSpec/Rest/index.ts @@ -1,8 +1,10 @@ -import { LibrarySymbolReference } from "@alloy-js/core"; +import type { LibrarySymbolReference } from "@alloy-js/core"; import { createLibrary } from "../../../index.js"; -import dataTypes, { LibraryDataTypes } from "./data-types.js"; -import decorators, { LibraryDecorators } from "./decorators.js"; +import type { LibraryDataTypes } from "./data-types.js"; +import dataTypes from "./data-types.js"; +import type { LibraryDecorators } from "./decorators.js"; +import decorators from "./decorators.js"; type RestLibrary = LibrarySymbolReference & LibraryDecorators & diff --git a/packages/typespec/src/builtins/TypeSpec/SSE/data-types.ts b/packages/typespec/src/builtins/TypeSpec/SSE/data-types.ts index fe035dd51..526f16d89 100644 --- a/packages/typespec/src/builtins/TypeSpec/SSE/data-types.ts +++ b/packages/typespec/src/builtins/TypeSpec/SSE/data-types.ts @@ -1,4 +1,4 @@ -import { Descriptor, LibraryFrom } from "../../../index.js"; +import type { Descriptor, LibraryFrom } from "../../../index.js"; const dataTypes = { SSEStream: { kind: "model", members: {} }, diff --git a/packages/typespec/src/builtins/TypeSpec/SSE/decorators.ts b/packages/typespec/src/builtins/TypeSpec/SSE/decorators.ts index 07154d65a..193a32601 100644 --- a/packages/typespec/src/builtins/TypeSpec/SSE/decorators.ts +++ b/packages/typespec/src/builtins/TypeSpec/SSE/decorators.ts @@ -1,4 +1,4 @@ -import { Descriptor, LibraryFrom } from "../../../index.js"; +import type { Descriptor, LibraryFrom } from "../../../index.js"; const decorators = { terminalEvent: { kind: "decorator" }, diff --git a/packages/typespec/src/builtins/TypeSpec/SSE/index.ts b/packages/typespec/src/builtins/TypeSpec/SSE/index.ts index 9f7d4ab61..ab4fbc008 100644 --- a/packages/typespec/src/builtins/TypeSpec/SSE/index.ts +++ b/packages/typespec/src/builtins/TypeSpec/SSE/index.ts @@ -1,8 +1,10 @@ -import { LibrarySymbolReference } from "@alloy-js/core"; +import type { LibrarySymbolReference } from "@alloy-js/core"; import { createLibrary } from "../../../index.js"; -import dataTypes, { LibraryDataTypes } from "./data-types.js"; -import decorators, { LibraryDecorators } from "./decorators.js"; +import type { LibraryDataTypes } from "./data-types.js"; +import dataTypes from "./data-types.js"; +import type { LibraryDecorators } from "./decorators.js"; +import decorators from "./decorators.js"; type SSELibrary = LibrarySymbolReference & LibraryDecorators & LibraryDataTypes; diff --git a/packages/typespec/src/builtins/TypeSpec/Versioning/decorators.ts b/packages/typespec/src/builtins/TypeSpec/Versioning/decorators.ts index 2768afb69..365dc3276 100644 --- a/packages/typespec/src/builtins/TypeSpec/Versioning/decorators.ts +++ b/packages/typespec/src/builtins/TypeSpec/Versioning/decorators.ts @@ -1,4 +1,4 @@ -import { Descriptor, LibraryFrom } from "../../../index.js"; +import type { Descriptor, LibraryFrom } from "../../../index.js"; const decorators = { added: { kind: "decorator" }, diff --git a/packages/typespec/src/builtins/TypeSpec/Versioning/index.ts b/packages/typespec/src/builtins/TypeSpec/Versioning/index.ts index e515b590c..71fd64da7 100644 --- a/packages/typespec/src/builtins/TypeSpec/Versioning/index.ts +++ b/packages/typespec/src/builtins/TypeSpec/Versioning/index.ts @@ -1,7 +1,8 @@ -import { LibrarySymbolReference } from "@alloy-js/core"; +import type { LibrarySymbolReference } from "@alloy-js/core"; import { createLibrary } from "../../../index.js"; -import decorators, { LibraryDecorators } from "./decorators.js"; +import type { LibraryDecorators } from "./decorators.js"; +import decorators from "./decorators.js"; type VersioningLibrary = LibrarySymbolReference & LibraryDecorators; diff --git a/packages/typespec/src/builtins/TypeSpec/data-types.ts b/packages/typespec/src/builtins/TypeSpec/data-types.ts index cecd567e3..e8f69eac9 100644 --- a/packages/typespec/src/builtins/TypeSpec/data-types.ts +++ b/packages/typespec/src/builtins/TypeSpec/data-types.ts @@ -1,4 +1,4 @@ -import { Descriptor, LibraryFrom } from "../../index.js"; +import type { Descriptor, LibraryFrom } from "../../index.js"; const dataTypes = { Array: { kind: "model", members: {} }, diff --git a/packages/typespec/src/builtins/TypeSpec/decorators.ts b/packages/typespec/src/builtins/TypeSpec/decorators.ts index 41276eef4..1e933ecae 100644 --- a/packages/typespec/src/builtins/TypeSpec/decorators.ts +++ b/packages/typespec/src/builtins/TypeSpec/decorators.ts @@ -1,4 +1,4 @@ -import { Descriptor, LibraryFrom } from "../../index.js"; +import type { Descriptor, LibraryFrom } from "../../index.js"; const decorators = { continuationToken: { diff --git a/packages/typespec/src/builtins/TypeSpec/index.ts b/packages/typespec/src/builtins/TypeSpec/index.ts index 8fa7d982a..efd3a6edb 100644 --- a/packages/typespec/src/builtins/TypeSpec/index.ts +++ b/packages/typespec/src/builtins/TypeSpec/index.ts @@ -1,8 +1,10 @@ -import { LibrarySymbolReference } from "@alloy-js/core"; +import type { LibrarySymbolReference } from "@alloy-js/core"; import { createLibrary } from "../../index.js"; -import dataTypes, { LibraryDataTypes } from "./data-types.js"; -import decorators, { LibraryDecorators } from "./decorators.js"; +import type { LibraryDataTypes } from "./data-types.js"; +import dataTypes from "./data-types.js"; +import type { LibraryDecorators } from "./decorators.js"; +import decorators from "./decorators.js"; type TypeSpecLibrary = LibrarySymbolReference & LibraryDecorators & diff --git a/packages/typespec/src/components/alias/alias-declaration.tsx b/packages/typespec/src/components/alias/alias-declaration.tsx index 8a8954c52..48bf27982 100644 --- a/packages/typespec/src/components/alias/alias-declaration.tsx +++ b/packages/typespec/src/components/alias/alias-declaration.tsx @@ -1,22 +1,13 @@ -import { - Children, - Declaration, - Name, - Namekey, - Refkey, - Scope, - useScope, -} from "@alloy-js/core"; +import type { Children, Namekey, Refkey } from "@alloy-js/core"; +import { Declaration, Name, Scope, useScope } from "@alloy-js/core"; import { useTypeSpecNamePolicy } from "../../name-policy.js"; import { NamedTypeScope } from "../../scopes/named-type.js"; -import { NamespaceScope } from "../../scopes/namespace.js"; +import type { NamespaceScope } from "../../scopes/namespace.js"; import { createNamedTypeSymbol } from "../../symbols/factories.js"; import { DocWhen } from "../doc/doc-comment.jsx"; -import { - TemplateParameterDescriptor, - TemplateParameters, -} from "../template-parameters/template-parameters.jsx"; +import type { TemplateParameterDescriptor } from "../template-parameters/template-parameters.jsx"; +import { TemplateParameters } from "../template-parameters/template-parameters.jsx"; export interface AliasDeclarationProps { /** The name of the alias. */ diff --git a/packages/typespec/src/components/array/array-expression.tsx b/packages/typespec/src/components/array/array-expression.tsx index e885e2f2b..9ac34cfdf 100644 --- a/packages/typespec/src/components/array/array-expression.tsx +++ b/packages/typespec/src/components/array/array-expression.tsx @@ -1,4 +1,4 @@ -import { Children } from "@alloy-js/core"; +import type { Children } from "@alloy-js/core"; export interface ArrayExpressionProps { /** The element type of the array. */ diff --git a/packages/typespec/src/components/const/const-declaration.tsx b/packages/typespec/src/components/const/const-declaration.tsx index 5b0569a72..c36fc4f3c 100644 --- a/packages/typespec/src/components/const/const-declaration.tsx +++ b/packages/typespec/src/components/const/const-declaration.tsx @@ -1,16 +1,9 @@ -import { - Children, - Declaration, - Name, - Namekey, - Refkey, - Scope, - useScope, -} from "@alloy-js/core"; +import type { Children, Namekey, Refkey } from "@alloy-js/core"; +import { Declaration, Name, Scope, useScope } from "@alloy-js/core"; import { useTypeSpecNamePolicy } from "../../name-policy.js"; import { NamedTypeScope } from "../../scopes/named-type.js"; -import { NamespaceScope } from "../../scopes/namespace.js"; +import type { NamespaceScope } from "../../scopes/namespace.js"; import { createNamedTypeSymbol } from "../../symbols/factories.js"; import { DocWhen } from "../doc/doc-comment.jsx"; diff --git a/packages/typespec/src/components/decorator-declaration/decorator-declaration.tsx b/packages/typespec/src/components/decorator-declaration/decorator-declaration.tsx index ccbe84829..7cc891343 100644 --- a/packages/typespec/src/components/decorator-declaration/decorator-declaration.tsx +++ b/packages/typespec/src/components/decorator-declaration/decorator-declaration.tsx @@ -1,11 +1,9 @@ +import type { Children, Namekey, Refkey } from "@alloy-js/core"; import { - Children, Declaration, For, Indent, Name, - Namekey, - Refkey, Scope, useScope, } from "@alloy-js/core"; diff --git a/packages/typespec/src/components/decorator/augment-decorator.tsx b/packages/typespec/src/components/decorator/augment-decorator.tsx index 6886d96bb..83967e742 100644 --- a/packages/typespec/src/components/decorator/augment-decorator.tsx +++ b/packages/typespec/src/components/decorator/augment-decorator.tsx @@ -1,4 +1,5 @@ -import { Children, For, Indent } from "@alloy-js/core"; +import type { Children } from "@alloy-js/core"; +import { For, Indent } from "@alloy-js/core"; export interface AugmentDecoratorProps { /** The decorator name or a Reference to a decorator symbol. */ diff --git a/packages/typespec/src/components/decorator/decorator-application.tsx b/packages/typespec/src/components/decorator/decorator-application.tsx index 4e5dcee9e..0cf081e32 100644 --- a/packages/typespec/src/components/decorator/decorator-application.tsx +++ b/packages/typespec/src/components/decorator/decorator-application.tsx @@ -1,4 +1,5 @@ -import { Children, For, Indent } from "@alloy-js/core"; +import type { Children } from "@alloy-js/core"; +import { For, Indent } from "@alloy-js/core"; export interface DecoratorApplicationProps { /** The decorator name or a Reference to a decorator symbol. */ diff --git a/packages/typespec/src/components/doc/doc-comment.tsx b/packages/typespec/src/components/doc/doc-comment.tsx index 10df41867..4d696aa23 100644 --- a/packages/typespec/src/components/doc/doc-comment.tsx +++ b/packages/typespec/src/components/doc/doc-comment.tsx @@ -1,4 +1,5 @@ -import { Children, List, Show } from "@alloy-js/core"; +import type { Children } from "@alloy-js/core"; +import { List, Show } from "@alloy-js/core"; export interface DocCommentProps { /** The main description text for the doc comment. */ diff --git a/packages/typespec/src/components/enum/enum-declaration.tsx b/packages/typespec/src/components/enum/enum-declaration.tsx index 417b9e6a6..4bde25a63 100644 --- a/packages/typespec/src/components/enum/enum-declaration.tsx +++ b/packages/typespec/src/components/enum/enum-declaration.tsx @@ -1,17 +1,9 @@ -import { - Block, - Children, - Declaration, - Name, - Namekey, - Refkey, - Scope, - useScope, -} from "@alloy-js/core"; +import type { Children, Namekey, Refkey } from "@alloy-js/core"; +import { Block, Declaration, Name, Scope, useScope } from "@alloy-js/core"; import { useTypeSpecNamePolicy } from "../../name-policy.js"; import { NamedTypeScope } from "../../scopes/named-type.js"; -import { NamespaceScope } from "../../scopes/namespace.js"; +import type { NamespaceScope } from "../../scopes/namespace.js"; import { createNamedTypeSymbol } from "../../symbols/factories.js"; import { DocWhen } from "../doc/doc-comment.jsx"; diff --git a/packages/typespec/src/components/enum/enum-member.tsx b/packages/typespec/src/components/enum/enum-member.tsx index fa5b213a8..318cd4ab4 100644 --- a/packages/typespec/src/components/enum/enum-member.tsx +++ b/packages/typespec/src/components/enum/enum-member.tsx @@ -1,4 +1,5 @@ -import { Children, Declaration, Name, Namekey, Refkey } from "@alloy-js/core"; +import type { Children, Namekey, Refkey } from "@alloy-js/core"; +import { Declaration, Name } from "@alloy-js/core"; import { createEnumMemberSymbol } from "../../symbols/factories.js"; import { DocWhen } from "../doc/doc-comment.jsx"; diff --git a/packages/typespec/src/components/interface/interface-declaration.tsx b/packages/typespec/src/components/interface/interface-declaration.tsx index ead1bf4fd..89a647a77 100644 --- a/packages/typespec/src/components/interface/interface-declaration.tsx +++ b/packages/typespec/src/components/interface/interface-declaration.tsx @@ -1,23 +1,13 @@ -import { - Block, - Children, - Declaration, - Name, - Namekey, - Refkey, - Scope, - useScope, -} from "@alloy-js/core"; +import type { Children, Namekey, Refkey } from "@alloy-js/core"; +import { Block, Declaration, Name, Scope, useScope } from "@alloy-js/core"; import { useTypeSpecNamePolicy } from "../../name-policy.js"; import { NamedTypeScope } from "../../scopes/named-type.js"; -import { NamespaceScope } from "../../scopes/namespace.js"; +import type { NamespaceScope } from "../../scopes/namespace.js"; import { createNamedTypeSymbol } from "../../symbols/factories.js"; import { DocWhen } from "../doc/doc-comment.jsx"; -import { - TemplateParameterDescriptor, - TemplateParameters, -} from "../template-parameters/template-parameters.jsx"; +import type { TemplateParameterDescriptor } from "../template-parameters/template-parameters.jsx"; +import { TemplateParameters } from "../template-parameters/template-parameters.jsx"; export interface InterfaceDeclarationProps { /** The interface name. */ diff --git a/packages/typespec/src/components/intersection/intersection-expression.tsx b/packages/typespec/src/components/intersection/intersection-expression.tsx index 199e3f489..0941b5720 100644 --- a/packages/typespec/src/components/intersection/intersection-expression.tsx +++ b/packages/typespec/src/components/intersection/intersection-expression.tsx @@ -1,4 +1,5 @@ -import { Children, List } from "@alloy-js/core"; +import type { Children } from "@alloy-js/core"; +import { List } from "@alloy-js/core"; export interface IntersectionExpressionProps { /** The types to intersect. */ diff --git a/packages/typespec/src/components/model/model-declaration.tsx b/packages/typespec/src/components/model/model-declaration.tsx index 9cfd99bb9..ad6ee2a26 100644 --- a/packages/typespec/src/components/model/model-declaration.tsx +++ b/packages/typespec/src/components/model/model-declaration.tsx @@ -1,23 +1,13 @@ -import { - Block, - Children, - Declaration, - Name, - Namekey, - Refkey, - Scope, - useScope, -} from "@alloy-js/core"; +import type { Children, Namekey, Refkey } from "@alloy-js/core"; +import { Block, Declaration, Name, Scope, useScope } from "@alloy-js/core"; import { useTypeSpecNamePolicy } from "../../name-policy.js"; import { NamedTypeScope } from "../../scopes/named-type.js"; -import { NamespaceScope } from "../../scopes/namespace.js"; +import type { NamespaceScope } from "../../scopes/namespace.js"; import { createNamedTypeSymbol } from "../../symbols/factories.js"; import { DocWhen } from "../doc/doc-comment.jsx"; -import { - TemplateParameterDescriptor, - TemplateParameters, -} from "../template-parameters/template-parameters.jsx"; +import type { TemplateParameterDescriptor } from "../template-parameters/template-parameters.jsx"; +import { TemplateParameters } from "../template-parameters/template-parameters.jsx"; export interface ModelDeclarationProps { /** The model name. */ diff --git a/packages/typespec/src/components/model/model-expression.tsx b/packages/typespec/src/components/model/model-expression.tsx index 53be0cb7e..f3320a637 100644 --- a/packages/typespec/src/components/model/model-expression.tsx +++ b/packages/typespec/src/components/model/model-expression.tsx @@ -1,4 +1,5 @@ -import { Block, Children, Scope, useScope } from "@alloy-js/core"; +import type { Children } from "@alloy-js/core"; +import { Block, Scope, useScope } from "@alloy-js/core"; import { NamedTypeScope } from "../../scopes/named-type.js"; import { createAnonymousModelSymbol } from "../../symbols/factories.js"; diff --git a/packages/typespec/src/components/model/model-property.tsx b/packages/typespec/src/components/model/model-property.tsx index 4392e9032..d91188faf 100644 --- a/packages/typespec/src/components/model/model-property.tsx +++ b/packages/typespec/src/components/model/model-property.tsx @@ -1,4 +1,5 @@ -import { Children, Declaration, Name, Namekey, Refkey } from "@alloy-js/core"; +import type { Children, Namekey, Refkey } from "@alloy-js/core"; +import { Declaration, Name } from "@alloy-js/core"; import { createModelPropertySymbol } from "../../symbols/factories.js"; import { DocWhen } from "../doc/doc-comment.jsx"; diff --git a/packages/typespec/src/components/namespace/namespace-scope.tsx b/packages/typespec/src/components/namespace/namespace-scope.tsx index 58d57e6ec..cdf675ef9 100644 --- a/packages/typespec/src/components/namespace/namespace-scope.tsx +++ b/packages/typespec/src/components/namespace/namespace-scope.tsx @@ -1,9 +1,10 @@ -import { Children, Scope, useScope } from "@alloy-js/core"; +import type { Children } from "@alloy-js/core"; +import { Scope, useScope } from "@alloy-js/core"; import { NamespaceContext } from "../../contexts/namespace.js"; import { NamespaceScope } from "../../scopes/namespace.js"; -import { SourceFileScope } from "../../scopes/source-file.js"; -import { NamespaceSymbol } from "../../symbols/index.js"; +import type { SourceFileScope } from "../../scopes/source-file.js"; +import type { NamespaceSymbol } from "../../symbols/index.js"; /** @internal */ export interface NamespaceScopeProps { diff --git a/packages/typespec/src/components/namespace/namespace.tsx b/packages/typespec/src/components/namespace/namespace.tsx index ec271f065..0edea40d4 100644 --- a/packages/typespec/src/components/namespace/namespace.tsx +++ b/packages/typespec/src/components/namespace/namespace.tsx @@ -1,14 +1,8 @@ -import { - Block, - Match, - Namekey, - Refkey, - Switch, - useScope, -} from "@alloy-js/core"; -import { Children } from "@alloy-js/core/jsx-runtime"; +import type { Namekey, Refkey } from "@alloy-js/core"; +import { Block, Match, Switch, useScope } from "@alloy-js/core"; +import type { Children } from "@alloy-js/core/jsx-runtime"; -import { NamespaceScope } from "../../scopes/namespace.js"; +import type { NamespaceScope } from "../../scopes/namespace.js"; import { SourceFileScope } from "../../scopes/source-file.js"; import { createNamespaceSymbol } from "../../symbols/factories.js"; import { DocWhen } from "../doc/doc-comment.jsx"; diff --git a/packages/typespec/src/components/operation/operation-declaration.tsx b/packages/typespec/src/components/operation/operation-declaration.tsx index 8b8f7e67d..611881c79 100644 --- a/packages/typespec/src/components/operation/operation-declaration.tsx +++ b/packages/typespec/src/components/operation/operation-declaration.tsx @@ -1,21 +1,12 @@ -import { - Children, - Declaration, - Name, - Namekey, - Refkey, - Scope, - useScope, -} from "@alloy-js/core"; +import type { Children, Namekey, Refkey } from "@alloy-js/core"; +import { Declaration, Name, Scope, useScope } from "@alloy-js/core"; import { useTypeSpecNamePolicy } from "../../name-policy.js"; import { NamedTypeScope } from "../../scopes/named-type.js"; import { createNamedTypeSymbol } from "../../symbols/factories.js"; import { DocWhen } from "../doc/doc-comment.jsx"; -import { - TemplateParameterDescriptor, - TemplateParameters, -} from "../template-parameters/template-parameters.jsx"; +import type { TemplateParameterDescriptor } from "../template-parameters/template-parameters.jsx"; +import { TemplateParameters } from "../template-parameters/template-parameters.jsx"; import { type ParameterEntry, Parameters } from "./parameters.jsx"; export type { diff --git a/packages/typespec/src/components/operation/parameters.tsx b/packages/typespec/src/components/operation/parameters.tsx index 65435cb55..ac04bf2b7 100644 --- a/packages/typespec/src/components/operation/parameters.tsx +++ b/packages/typespec/src/components/operation/parameters.tsx @@ -1,4 +1,5 @@ -import { Children, For, Indent } from "@alloy-js/core"; +import type { Children } from "@alloy-js/core"; +import { For, Indent } from "@alloy-js/core"; import { DocWhen } from "../doc/doc-comment.jsx"; diff --git a/packages/typespec/src/components/reference/reference.tsx b/packages/typespec/src/components/reference/reference.tsx index 3efc45043..2d9fd8c7a 100644 --- a/packages/typespec/src/components/reference/reference.tsx +++ b/packages/typespec/src/components/reference/reference.tsx @@ -1,16 +1,9 @@ -import { - Children, - computed, - Refkeyable, - toRefkey, - unresolvedRefkey, -} from "@alloy-js/core"; +import type { Children, Refkeyable } from "@alloy-js/core"; +import { computed, toRefkey, unresolvedRefkey } from "@alloy-js/core"; import { ref } from "../../symbols/reference.js"; -import { - TemplateArgumentDescriptor, - TemplateArguments, -} from "../template-parameters/template-arguments.jsx"; +import type { TemplateArgumentDescriptor } from "../template-parameters/template-arguments.jsx"; +import { TemplateArguments } from "../template-parameters/template-arguments.jsx"; export interface ReferenceProps { refkey: Refkeyable; diff --git a/packages/typespec/src/components/scalar-declaration/scalar-constructor.tsx b/packages/typespec/src/components/scalar-declaration/scalar-constructor.tsx index 443a9c99e..5e7c9b213 100644 --- a/packages/typespec/src/components/scalar-declaration/scalar-constructor.tsx +++ b/packages/typespec/src/components/scalar-declaration/scalar-constructor.tsx @@ -1,7 +1,8 @@ -import { Children } from "@alloy-js/core"; +import type { Children } from "@alloy-js/core"; import { DocWhen } from "../doc/doc-comment.jsx"; -import { ParameterDescriptor, Parameters } from "../operation/parameters.jsx"; +import type { ParameterDescriptor } from "../operation/parameters.jsx"; +import { Parameters } from "../operation/parameters.jsx"; export interface ScalarConstructorProps { /** The name of the constructor. */ diff --git a/packages/typespec/src/components/scalar-declaration/scalar-declaration.tsx b/packages/typespec/src/components/scalar-declaration/scalar-declaration.tsx index 36b082292..454768125 100644 --- a/packages/typespec/src/components/scalar-declaration/scalar-declaration.tsx +++ b/packages/typespec/src/components/scalar-declaration/scalar-declaration.tsx @@ -1,23 +1,13 @@ -import { - Block, - Children, - Declaration, - Name, - Namekey, - Refkey, - Scope, - useScope, -} from "@alloy-js/core"; +import type { Children, Namekey, Refkey } from "@alloy-js/core"; +import { Block, Declaration, Name, Scope, useScope } from "@alloy-js/core"; import { useTypeSpecNamePolicy } from "../../name-policy.js"; import { NamedTypeScope } from "../../scopes/named-type.js"; -import { NamespaceScope } from "../../scopes/namespace.js"; +import type { NamespaceScope } from "../../scopes/namespace.js"; import { createNamedTypeSymbol } from "../../symbols/factories.js"; import { DocWhen } from "../doc/doc-comment.jsx"; -import { - TemplateParameterDescriptor, - TemplateParameters, -} from "../template-parameters/template-parameters.jsx"; +import type { TemplateParameterDescriptor } from "../template-parameters/template-parameters.jsx"; +import { TemplateParameters } from "../template-parameters/template-parameters.jsx"; export interface ScalarDeclarationProps { /** The scalar name. */ diff --git a/packages/typespec/src/components/source-file/source-file.tsx b/packages/typespec/src/components/source-file/source-file.tsx index 06bccf5ee..8a5b4403c 100644 --- a/packages/typespec/src/components/source-file/source-file.tsx +++ b/packages/typespec/src/components/source-file/source-file.tsx @@ -1,5 +1,5 @@ +import type { Children } from "@alloy-js/core"; import { - Children, childrenArray, computed, SourceFile as CoreSourceFile, diff --git a/packages/typespec/src/components/spread/spread-expression.tsx b/packages/typespec/src/components/spread/spread-expression.tsx index 55b342fb9..4bc1067c0 100644 --- a/packages/typespec/src/components/spread/spread-expression.tsx +++ b/packages/typespec/src/components/spread/spread-expression.tsx @@ -1,4 +1,4 @@ -import { Children } from "@alloy-js/core"; +import type { Children } from "@alloy-js/core"; export interface SpreadExpressionProps { /** The type or model to spread. */ diff --git a/packages/typespec/src/components/string-literal/string-literal.tsx b/packages/typespec/src/components/string-literal/string-literal.tsx index 4250a3530..1ee4d4d12 100644 --- a/packages/typespec/src/components/string-literal/string-literal.tsx +++ b/packages/typespec/src/components/string-literal/string-literal.tsx @@ -1,4 +1,4 @@ -import { Children } from "@alloy-js/core"; +import type { Children } from "@alloy-js/core"; export interface StringLiteralProps { /** diff --git a/packages/typespec/src/components/string-literal/string-template-expr.tsx b/packages/typespec/src/components/string-literal/string-template-expr.tsx index a0c22742b..16f63c285 100644 --- a/packages/typespec/src/components/string-literal/string-template-expr.tsx +++ b/packages/typespec/src/components/string-literal/string-template-expr.tsx @@ -1,4 +1,4 @@ -import { Children } from "@alloy-js/core"; +import type { Children } from "@alloy-js/core"; export interface StringTemplateExprProps { /** The expression to interpolate inside `${ }`. */ diff --git a/packages/typespec/src/components/template-parameters/template-arguments.tsx b/packages/typespec/src/components/template-parameters/template-arguments.tsx index bda71a3c1..4ae206355 100644 --- a/packages/typespec/src/components/template-parameters/template-arguments.tsx +++ b/packages/typespec/src/components/template-parameters/template-arguments.tsx @@ -1,4 +1,5 @@ -import { Children, For, Indent } from "@alloy-js/core"; +import type { Children } from "@alloy-js/core"; +import { For, Indent } from "@alloy-js/core"; /** * Descriptor for a single template argument at a usage site. diff --git a/packages/typespec/src/components/template-parameters/template-parameters.tsx b/packages/typespec/src/components/template-parameters/template-parameters.tsx index 3eaaeecc4..eed59b4ba 100644 --- a/packages/typespec/src/components/template-parameters/template-parameters.tsx +++ b/packages/typespec/src/components/template-parameters/template-parameters.tsx @@ -1,12 +1,5 @@ -import { - Children, - Declaration, - For, - Indent, - Name, - Namekey, - Refkey, -} from "@alloy-js/core"; +import type { Children, Namekey, Refkey } from "@alloy-js/core"; +import { Declaration, For, Indent, Name } from "@alloy-js/core"; import { createTemplateParameterSymbol } from "../../symbols/factories.js"; diff --git a/packages/typespec/src/components/typeof/typeof-expression.tsx b/packages/typespec/src/components/typeof/typeof-expression.tsx index eb40b67c9..483d916a1 100644 --- a/packages/typespec/src/components/typeof/typeof-expression.tsx +++ b/packages/typespec/src/components/typeof/typeof-expression.tsx @@ -1,4 +1,4 @@ -import { Children } from "@alloy-js/core"; +import type { Children } from "@alloy-js/core"; export interface TypeOfExpressionProps { /** The value reference to extract the type from. */ diff --git a/packages/typespec/src/components/union/union-declaration.tsx b/packages/typespec/src/components/union/union-declaration.tsx index 3815ff9eb..84d2b8bd7 100644 --- a/packages/typespec/src/components/union/union-declaration.tsx +++ b/packages/typespec/src/components/union/union-declaration.tsx @@ -1,23 +1,13 @@ -import { - Block, - Children, - Declaration, - Name, - Namekey, - Refkey, - Scope, - useScope, -} from "@alloy-js/core"; +import type { Children, Namekey, Refkey } from "@alloy-js/core"; +import { Block, Declaration, Name, Scope, useScope } from "@alloy-js/core"; import { useTypeSpecNamePolicy } from "../../name-policy.js"; import { NamedTypeScope } from "../../scopes/named-type.js"; -import { NamespaceScope } from "../../scopes/namespace.js"; +import type { NamespaceScope } from "../../scopes/namespace.js"; import { createNamedTypeSymbol } from "../../symbols/factories.js"; import { DocWhen } from "../doc/doc-comment.jsx"; -import { - TemplateParameterDescriptor, - TemplateParameters, -} from "../template-parameters/template-parameters.jsx"; +import type { TemplateParameterDescriptor } from "../template-parameters/template-parameters.jsx"; +import { TemplateParameters } from "../template-parameters/template-parameters.jsx"; export interface UnionDeclarationProps { /** The union name. */ diff --git a/packages/typespec/src/components/union/union-expression.tsx b/packages/typespec/src/components/union/union-expression.tsx index deaeae579..046b9364d 100644 --- a/packages/typespec/src/components/union/union-expression.tsx +++ b/packages/typespec/src/components/union/union-expression.tsx @@ -1,4 +1,5 @@ -import { Children, List } from "@alloy-js/core"; +import type { Children } from "@alloy-js/core"; +import { List } from "@alloy-js/core"; export interface UnionExpressionProps { types: Children[]; diff --git a/packages/typespec/src/components/union/union-variant.tsx b/packages/typespec/src/components/union/union-variant.tsx index 413a3547e..8511507b6 100644 --- a/packages/typespec/src/components/union/union-variant.tsx +++ b/packages/typespec/src/components/union/union-variant.tsx @@ -1,4 +1,5 @@ -import { Children, Declaration, Name, Namekey, Refkey } from "@alloy-js/core"; +import type { Children, Namekey, Refkey } from "@alloy-js/core"; +import { Declaration, Name } from "@alloy-js/core"; import { createUnionVariantSymbol } from "../../symbols/factories.js"; import { DocWhen } from "../doc/doc-comment.jsx"; diff --git a/packages/typespec/src/components/value/array-value.tsx b/packages/typespec/src/components/value/array-value.tsx index 5d262de2a..587ee04ae 100644 --- a/packages/typespec/src/components/value/array-value.tsx +++ b/packages/typespec/src/components/value/array-value.tsx @@ -1,4 +1,5 @@ -import { Children, List } from "@alloy-js/core"; +import type { Children } from "@alloy-js/core"; +import { List } from "@alloy-js/core"; export interface ArrayValueProps { /** The array items. */ diff --git a/packages/typespec/src/components/value/object-value.tsx b/packages/typespec/src/components/value/object-value.tsx index 1b1e384cd..26c22da8b 100644 --- a/packages/typespec/src/components/value/object-value.tsx +++ b/packages/typespec/src/components/value/object-value.tsx @@ -1,4 +1,5 @@ -import { Block, Children } from "@alloy-js/core"; +import type { Children } from "@alloy-js/core"; +import { Block } from "@alloy-js/core"; export interface ObjectValueProps { /** The object value body (key-value pairs). */ diff --git a/packages/typespec/src/contexts/namespace.ts b/packages/typespec/src/contexts/namespace.ts index fbedb0d97..10ed50f83 100644 --- a/packages/typespec/src/contexts/namespace.ts +++ b/packages/typespec/src/contexts/namespace.ts @@ -1,6 +1,7 @@ -import { ComponentContext, createContext, useContext } from "@alloy-js/core"; +import type { ComponentContext } from "@alloy-js/core"; +import { createContext, useContext } from "@alloy-js/core"; -import { NamespaceSymbol } from "../symbols/namespace.js"; +import type { NamespaceSymbol } from "../symbols/namespace.js"; export interface NamespaceContext { symbol: NamespaceSymbol; diff --git a/packages/typespec/src/contexts/program.ts b/packages/typespec/src/contexts/program.ts index d9f28e011..1b3e7fa71 100644 --- a/packages/typespec/src/contexts/program.ts +++ b/packages/typespec/src/contexts/program.ts @@ -1,7 +1,8 @@ -import { Binder, useBinder } from "@alloy-js/core"; +import type { Binder } from "@alloy-js/core"; +import { useBinder } from "@alloy-js/core"; import { ProgramScope } from "../scopes/program.js"; -import { SourceFileScope } from "../scopes/source-file.js"; +import type { SourceFileScope } from "../scopes/source-file.js"; import { NamespaceSymbol } from "../symbols/index.js"; export function createGlobalNamespace(parent: SourceFileScope) { diff --git a/packages/typespec/src/create-library.test.ts b/packages/typespec/src/create-library.test.ts index f2625a467..4f6a8eea0 100644 --- a/packages/typespec/src/create-library.test.ts +++ b/packages/typespec/src/create-library.test.ts @@ -3,7 +3,7 @@ import { beforeEach, expect, it } from "vitest"; import { getProgram, resetProgram } from "./contexts/program.js"; import { createLibrary } from "./create-library.js"; -import { NamespaceSymbol } from "./symbols/index.js"; +import type { NamespaceSymbol } from "./symbols/index.js"; beforeEach(() => { resetProgram(); diff --git a/packages/typespec/src/create-library.ts b/packages/typespec/src/create-library.ts index b81894765..cbcb65920 100644 --- a/packages/typespec/src/create-library.ts +++ b/packages/typespec/src/create-library.ts @@ -1,7 +1,6 @@ +import type { Binder, LibrarySymbolReference } from "@alloy-js/core"; import { - Binder, isLibrarySymbolReference, - LibrarySymbolReference, namekey, refkey, REFKEYABLE, diff --git a/packages/typespec/src/name-policy.ts b/packages/typespec/src/name-policy.ts index cdfdea99c..d23c516c8 100644 --- a/packages/typespec/src/name-policy.ts +++ b/packages/typespec/src/name-policy.ts @@ -1,4 +1,5 @@ -import { createNamePolicy, NamePolicy, useNamePolicy } from "@alloy-js/core"; +import type { NamePolicy } from "@alloy-js/core"; +import { createNamePolicy, useNamePolicy } from "@alloy-js/core"; import { needsEscapingInDeclaration, diff --git a/packages/typespec/src/scopes/named-type.ts b/packages/typespec/src/scopes/named-type.ts index 832c55c75..3811d7ccc 100644 --- a/packages/typespec/src/scopes/named-type.ts +++ b/packages/typespec/src/scopes/named-type.ts @@ -1,6 +1,7 @@ -import { OutputScope, OutputScopeOptions, OutputSpace } from "@alloy-js/core"; +import type { OutputScopeOptions, OutputSpace } from "@alloy-js/core"; +import { OutputScope } from "@alloy-js/core"; -import { NamedTypeSymbol } from "../symbols/named-type.js"; +import type { NamedTypeSymbol } from "../symbols/named-type.js"; export interface NamedTypeScopeOptions extends OutputScopeOptions {} diff --git a/packages/typespec/src/scopes/namespace.ts b/packages/typespec/src/scopes/namespace.ts index 38e148059..7739c88ea 100644 --- a/packages/typespec/src/scopes/namespace.ts +++ b/packages/typespec/src/scopes/namespace.ts @@ -1,6 +1,7 @@ -import { OutputScope, OutputScopeOptions, useScope } from "@alloy-js/core"; +import type { OutputScopeOptions } from "@alloy-js/core"; +import { OutputScope, useScope } from "@alloy-js/core"; -import { NamespaceSymbol } from "../symbols/index.js"; +import type { NamespaceSymbol } from "../symbols/index.js"; import { SourceFileScope } from "./source-file.js"; export interface NamespaceScopeOptions extends OutputScopeOptions {} diff --git a/packages/typespec/src/scopes/program.ts b/packages/typespec/src/scopes/program.ts index a1b03ea0a..60b104a6e 100644 --- a/packages/typespec/src/scopes/program.ts +++ b/packages/typespec/src/scopes/program.ts @@ -1,4 +1,5 @@ -import { OutputScope, OutputScopeOptions } from "@alloy-js/core"; +import type { OutputScopeOptions } from "@alloy-js/core"; +import { OutputScope } from "@alloy-js/core"; export interface ProgramScopeOptions extends OutputScopeOptions {} diff --git a/packages/typespec/src/scopes/source-file.ts b/packages/typespec/src/scopes/source-file.ts index d64919363..55c8d6a09 100644 --- a/packages/typespec/src/scopes/source-file.ts +++ b/packages/typespec/src/scopes/source-file.ts @@ -1,6 +1,6 @@ +import type { OutputScopeOptions } from "@alloy-js/core"; import { OutputScope, - OutputScopeOptions, shallowReactive, track, TrackOpTypes, @@ -9,8 +9,8 @@ import { useScope, } from "@alloy-js/core"; -import { NamespaceSymbol } from "../symbols/index.js"; -import { ProgramScope } from "./program.js"; +import type { NamespaceSymbol } from "../symbols/index.js"; +import type { ProgramScope } from "./program.js"; export interface SourceFileScopeOptions extends OutputScopeOptions {} diff --git a/packages/typespec/src/symbols/factories.ts b/packages/typespec/src/symbols/factories.ts index 6db76f388..ab7851d50 100644 --- a/packages/typespec/src/symbols/factories.ts +++ b/packages/typespec/src/symbols/factories.ts @@ -1,17 +1,19 @@ -import { +import type { Namekey, NamePolicyGetter, - onCleanup, OutputSymbolOptions, - useScope, } from "@alloy-js/core"; +import { onCleanup, useScope } from "@alloy-js/core"; import { useNamespaceContext } from "../contexts/namespace.js"; -import { TypeSpecElements, useTypeSpecNamePolicy } from "../name-policy.js"; +import type { TypeSpecElements } from "../name-policy.js"; +import { useTypeSpecNamePolicy } from "../name-policy.js"; import { SourceFileScope } from "../scopes/index.js"; import { NamedTypeScope } from "../scopes/named-type.js"; -import { NamedTypeKind, NamedTypeSymbol, TypeSpecSymbol } from "./index.js"; -import { NamespaceSymbol, NamespaceSymbolOptions } from "./namespace.js"; +import type { NamedTypeKind } from "./index.js"; +import { NamedTypeSymbol, TypeSpecSymbol } from "./index.js"; +import type { NamespaceSymbolOptions } from "./namespace.js"; +import { NamespaceSymbol } from "./namespace.js"; export function createNamespaceSymbol( name: (string | Namekey) | (string | Namekey)[], diff --git a/packages/typespec/src/symbols/named-type.ts b/packages/typespec/src/symbols/named-type.ts index b29ee1e65..2286d90b4 100644 --- a/packages/typespec/src/symbols/named-type.ts +++ b/packages/typespec/src/symbols/named-type.ts @@ -1,10 +1,7 @@ -import { Namekey, OutputSpace, OutputSymbol } from "@alloy-js/core"; +import type { Namekey, OutputSpace, OutputSymbol } from "@alloy-js/core"; -import { - TypeSpecSymbol, - TypeSpecSymbolKind, - TypeSpecSymbolOptions, -} from "./typespec.js"; +import type { TypeSpecSymbolKind, TypeSpecSymbolOptions } from "./typespec.js"; +import { TypeSpecSymbol } from "./typespec.js"; export type NamedTypeKind = | "namespace" diff --git a/packages/typespec/src/symbols/namespace.ts b/packages/typespec/src/symbols/namespace.ts index c53cf2e3b..6259e52ff 100644 --- a/packages/typespec/src/symbols/namespace.ts +++ b/packages/typespec/src/symbols/namespace.ts @@ -1,7 +1,7 @@ -import { Namekey, OutputSpace } from "@alloy-js/core"; +import type { Namekey, OutputSpace } from "@alloy-js/core"; import { NamedTypeSymbol } from "./named-type.js"; -import { +import type { TypeSpecSymbol, TypeSpecSymbolKind, TypeSpecSymbolOptions, diff --git a/packages/typespec/src/symbols/reference.ts b/packages/typespec/src/symbols/reference.ts index cd35112f0..9a1cadbb9 100644 --- a/packages/typespec/src/symbols/reference.ts +++ b/packages/typespec/src/symbols/reference.ts @@ -1,19 +1,14 @@ -import { - computed, - OutputScope, - OutputSymbol, - Ref, - Refkey, - resolve, -} from "@alloy-js/core"; +import type { OutputScope, OutputSymbol, Ref, Refkey } from "@alloy-js/core"; +import { computed, resolve } from "@alloy-js/core"; -import { isNamespaceSymbol, NamespaceSymbol } from "../index.js"; +import type { NamespaceSymbol } from "../index.js"; +import { isNamespaceSymbol } from "../index.js"; import { NamedTypeScope } from "../scopes/named-type.js"; import { NamespaceScope } from "../scopes/namespace.js"; import { ProgramScope } from "../scopes/program.js"; import { SourceFileScope, useSourceFileScope } from "../scopes/source-file.js"; import { relativePath } from "../util.js"; -import { TypeSpecSymbol } from "./typespec.js"; +import type { TypeSpecSymbol } from "./typespec.js"; export interface RefResult { symbol: OutputSymbol; diff --git a/packages/typespec/src/symbols/typespec.ts b/packages/typespec/src/symbols/typespec.ts index 8000b77d5..27bfd5dfa 100644 --- a/packages/typespec/src/symbols/typespec.ts +++ b/packages/typespec/src/symbols/typespec.ts @@ -1,9 +1,5 @@ -import { - Namekey, - OutputSpace, - OutputSymbol, - OutputSymbolOptions, -} from "@alloy-js/core"; +import type { Namekey, OutputSpace, OutputSymbolOptions } from "@alloy-js/core"; +import { OutputSymbol } from "@alloy-js/core"; export interface TypeSpecSymbolOptions extends OutputSymbolOptions { /** diff --git a/samples/client-emitter/src/components/Client.tsx b/samples/client-emitter/src/components/Client.tsx index b10ad20d2..9d4322f5f 100644 --- a/samples/client-emitter/src/components/Client.tsx +++ b/samples/client-emitter/src/components/Client.tsx @@ -1,4 +1,5 @@ -import { Children, For, refkey } from "@alloy-js/core"; +import type { Children } from "@alloy-js/core"; +import { For, refkey } from "@alloy-js/core"; import * as ts from "@alloy-js/typescript"; import { useApi } from "../context/api.js"; diff --git a/samples/client-emitter/src/components/ClientMethod.tsx b/samples/client-emitter/src/components/ClientMethod.tsx index bb937936e..41b44aca1 100644 --- a/samples/client-emitter/src/components/ClientMethod.tsx +++ b/samples/client-emitter/src/components/ClientMethod.tsx @@ -1,8 +1,9 @@ -import { Children, code, refkey } from "@alloy-js/core"; +import type { Children } from "@alloy-js/core"; +import { code, refkey } from "@alloy-js/core"; import * as ts from "@alloy-js/typescript"; import { useApi } from "../context/api.js"; -import { RestApiOperation } from "../schema.js"; +import type { RestApiOperation } from "../schema.js"; export interface ClientMethodProps { operation: RestApiOperation; diff --git a/samples/client-emitter/src/components/Model.tsx b/samples/client-emitter/src/components/Model.tsx index d99e9057c..46f3859b1 100644 --- a/samples/client-emitter/src/components/Model.tsx +++ b/samples/client-emitter/src/components/Model.tsx @@ -1,7 +1,7 @@ import { For, refkey } from "@alloy-js/core"; import * as ts from "@alloy-js/typescript"; -import { RestApiModel } from "../schema.js"; +import type { RestApiModel } from "../schema.js"; import { ModelProperty } from "./ModelProperty.jsx"; interface ModelProps { model: RestApiModel; diff --git a/samples/client-emitter/src/components/ModelProperty.tsx b/samples/client-emitter/src/components/ModelProperty.tsx index ecbda480f..8ce49515f 100644 --- a/samples/client-emitter/src/components/ModelProperty.tsx +++ b/samples/client-emitter/src/components/ModelProperty.tsx @@ -1,8 +1,9 @@ -import { Children, refkey } from "@alloy-js/core"; +import type { Children } from "@alloy-js/core"; +import { refkey } from "@alloy-js/core"; import * as ts from "@alloy-js/typescript"; import { useApi } from "../context/api.js"; -import { RestApiModelProperty } from "../schema.js"; +import type { RestApiModelProperty } from "../schema.js"; import { Model } from "./Model.jsx"; interface ModelPropertyProps { diff --git a/samples/client-emitter/src/context/api.ts b/samples/client-emitter/src/context/api.ts index e6d630340..3027db3db 100644 --- a/samples/client-emitter/src/context/api.ts +++ b/samples/client-emitter/src/context/api.ts @@ -1,6 +1,10 @@ import { createContext, useContext } from "@alloy-js/core"; -import { RestApi, RestApiModel, RestApiModelReference } from "../schema.js"; +import type { + RestApi, + RestApiModel, + RestApiModelReference, +} from "../schema.js"; interface ApiContext { schema: RestApi; diff --git a/samples/python-example/src/components/ClientMethod.tsx b/samples/python-example/src/components/ClientMethod.tsx index 84fe9ef1a..16511f1e3 100644 --- a/samples/python-example/src/components/ClientMethod.tsx +++ b/samples/python-example/src/components/ClientMethod.tsx @@ -1,8 +1,9 @@ -import { Children, code, Prose, refkey } from "@alloy-js/core"; +import type { Children } from "@alloy-js/core"; +import { code, Prose, refkey } from "@alloy-js/core"; import * as py from "@alloy-js/python"; import { useApi } from "../context/api.js"; -import { RestApiOperation } from "../schema.js"; +import type { RestApiOperation } from "../schema.js"; import { castOpenAPITypeToPython, resolveRestAPIReference, diff --git a/samples/python-example/src/components/Model.tsx b/samples/python-example/src/components/Model.tsx index 7af4b024c..7f2d6d4da 100644 --- a/samples/python-example/src/components/Model.tsx +++ b/samples/python-example/src/components/Model.tsx @@ -1,7 +1,7 @@ import { For, refkey } from "@alloy-js/core"; import * as py from "@alloy-js/python"; -import { RestApiModel } from "../schema.js"; +import type { RestApiModel } from "../schema.js"; import { ModelProperty } from "./index.js"; interface ModelProps { diff --git a/samples/python-example/src/components/ModelProperty.tsx b/samples/python-example/src/components/ModelProperty.tsx index 6637c54c5..f1d60729f 100644 --- a/samples/python-example/src/components/ModelProperty.tsx +++ b/samples/python-example/src/components/ModelProperty.tsx @@ -1,8 +1,9 @@ -import { Children, code } from "@alloy-js/core"; +import type { Children } from "@alloy-js/core"; +import { code } from "@alloy-js/core"; import * as py from "@alloy-js/python"; import { useApi } from "../context/api.js"; -import { RestApiModelProperty } from "../schema.js"; +import type { RestApiModelProperty } from "../schema.js"; import { castOpenAPITypeToPython, resolveRestAPIReference } from "../utils.js"; import { Model } from "./index.js"; diff --git a/samples/python-example/src/context/api.ts b/samples/python-example/src/context/api.ts index 0fd518b58..b15f3265a 100644 --- a/samples/python-example/src/context/api.ts +++ b/samples/python-example/src/context/api.ts @@ -1,6 +1,10 @@ import { createContext, useContext } from "@alloy-js/core"; -import { RestApi, RestApiModel, RestApiModelReference } from "../schema.js"; +import type { + RestApi, + RestApiModel, + RestApiModelReference, +} from "../schema.js"; // context interface export interface ApiContext { diff --git a/samples/python-example/src/index.tsx b/samples/python-example/src/index.tsx index c798e7297..606b33db5 100644 --- a/samples/python-example/src/index.tsx +++ b/samples/python-example/src/index.tsx @@ -1,18 +1,13 @@ -import { - Children, - For, - Output, - Prose, - render, - writeOutput, -} from "@alloy-js/core"; +import type { Children } from "@alloy-js/core"; +import { For, Output, Prose, render, writeOutput } from "@alloy-js/core"; import * as py from "@alloy-js/python"; import { Client } from "./components/Client.jsx"; import { Model } from "./components/Model.jsx"; import { Usage } from "./components/Usage.jsx"; import { ApiContext, createApiContext } from "./context/api.js"; -import { api, RestApiModel } from "./schema.js"; +import type { RestApiModel } from "./schema.js"; +import { api } from "./schema.js"; const modelsDoc = (