Skip to content

Commit

Permalink
Revert "refactor: export internal types"
Browse files Browse the repository at this point in the history
This reverts commit 4227f9d.
  • Loading branch information
exuanbo committed Oct 24, 2024
1 parent c7a2128 commit 8072fd5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ export type {Registration, RegistrationMap, RegistrationOptions, Registry} from
export {Build, Value} from "./registry";
export {Scope} from "./scope";
export type {Constructor, Token, TokenList} from "./token";
export {Type, TypeNull, TypeUndefined} from "./token";
export {Type} from "./token";
11 changes: 4 additions & 7 deletions src/token.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,12 @@ export function Type<T>(typeName: string): Type<T> {
}

export declare namespace Type {
export var Null: typeof TypeNull;
export var Undefined: typeof TypeUndefined;
export var Null: Type<null>;
export var Undefined: Type<undefined>;
}

export const TypeNull: Type<null> = Type("null");
export const TypeUndefined: Type<undefined> = Type("undefined");

Type.Null = TypeNull;
Type.Undefined = TypeUndefined;
Type.Null = Type("null");
Type.Undefined = Type("undefined");

export interface Constructor<Instance extends object> {
new (...args: []): Instance;
Expand Down

0 comments on commit 8072fd5

Please sign in to comment.