Skip to content

Commit

Permalink
feat(extensionkit): expose more utilities
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonkuhrt committed Nov 20, 2024
1 parent 62a5d0d commit 3e72e0a
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
5 changes: 5 additions & 0 deletions src/entrypoints/extensionkit.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,7 @@
export { createBuilderExtension, createExtension, createTypeHooks } from '../extension/extension.js'
export { createExtension as createGeneratorExtension } from '../generator/extension/create.js'
// todo: no deep imports, rethink these utilities and/or how they are exported from the graffle package.
export type { Context } from '../client/context.js'
export type { Extension } from '../extension/extension.js'
export type { Builder } from '../lib/builder/__.js'
export { Errors } from '../lib/errors/__.js'
1 change: 0 additions & 1 deletion src/extension/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,6 @@ export const createExtension = <
definitionInput: {
name: $Name
normalizeConfig?: (...args: $ConfigInputParameters) => $Config
// normalizeConfig?: $x
custom?: $Custom
create: (params: { config: $Config }) => {
builder?: $BuilderExtension
Expand Down
3 changes: 1 addition & 2 deletions src/extensions/SchemaErrors/runtime.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { createExtension, createTypeHooks, type Extension } from '../../extension/extension.js'
import { Errors } from '../../lib/errors/__.js'
import { createExtension, createTypeHooks, Errors, type Extension } from '../../entrypoints/extensionkit.js'
import { normalizeRequestToNode } from '../../lib/grafaid/request.js'
import { type ExcludeNullAndUndefined, isString } from '../../lib/prelude.js'
import { isRecordLikeObject } from '../../lib/prelude.js'
Expand Down
4 changes: 1 addition & 3 deletions src/extensions/Throws/Throws.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
import type { Builder, Context } from '../../entrypoints/extensionkit.js'
import { createBuilderExtension, createExtension } from '../../entrypoints/extensionkit.js'
import { type AssertExtends, type BuilderConfig, type WithInput } from '../../entrypoints/main.js'
import type { ConfigManager } from '../../lib/config-manager/__.js'
// todo: no deep imports, rethink these utilities and/or how they are exported from the graffle package.
import type { Context } from '../../client/context.js'
import type { Builder } from '../../lib/builder/__.js'

export const Throws = createExtension({
name: `Throws`,
Expand Down

0 comments on commit 3e72e0a

Please sign in to comment.