diff --git a/src/index.ts b/src/index.ts index e74334c..11fb3e1 100644 --- a/src/index.ts +++ b/src/index.ts @@ -4,3 +4,4 @@ export { treaty } from './treaty2' export { edenTreaty } from './treaty' export { edenFetch } from './fetch' export { EdenFetchError } from './errors' +export type { ThrowHttpError } from './types' diff --git a/test/types/treaty2.ts b/test/types/treaty2.ts index 52d890e..c2619c0 100644 --- a/test/types/treaty2.ts +++ b/test/types/treaty2.ts @@ -1,7 +1,7 @@ import { Elysia, file, form, status, t } from 'elysia' import { treaty } from '../../src' import { expectTypeOf } from 'expect-type' -import type { ThrowHttpError } from '../../src/types' +import type { ThrowHttpError } from '../../src' const plugin = new Elysia({ prefix: '/level' }) .get('/', '2')