Skip to content

Commit

Permalink
chore: wip
Browse files Browse the repository at this point in the history
chore: wip

chore: wip

chore: wip

chore: wip
  • Loading branch information
chrisbbreuer committed Nov 5, 2024
1 parent efd05fc commit 52fb5c6
Show file tree
Hide file tree
Showing 5 changed files with 348 additions and 137 deletions.
2 changes: 2 additions & 0 deletions fixtures/output/exports.d.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import type { BunPlugin } from 'bun';
import type { SomeOtherType } from '@stacksjs/types';
import { dtsConfig } from './config';
import { generate, something as dts } from './generate';

Expand Down
6 changes: 2 additions & 4 deletions fixtures/output/function.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,8 @@ export declare function getProduct(id: number): Promise<ApiResponse<Product>>;
export declare function authenticate(user: string, password: string): Promise<AuthResponse>;
export declare function dts(options?: DtsGenerationOption): BunPlugin;
export declare function loadConfig<T extends Record<string, unknown>>({ name, cwd, defaultConfig }: Options<T>): Promise<T>;
export declare function processData(data: string): string;
export declare function processData(data: number): number;
export declare function processData(data: boolean): boolean;
export declare function processData<T extends object>(data: T): T;
export declare function processData(data: string): string export function processData(data: number): number;
export declare function processData(data: boolean): boolean export function processData<T extends object>(data: T): T;
export declare function processData(data: unknown): unknown;
export declare function complexAsyncGenerator(): any;
export declare function isUser(value: unknown): value is User;
Expand Down
7 changes: 6 additions & 1 deletion fixtures/output/interface.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,9 @@ export declare interface ComplexGeneric<T extends Record<string, unknown>, K ext
export declare interface DefaultGeneric<
T = string,
K extends keyof any = string,
V extends Record<K, T> = Record<K, T>
V extends Record<K, T> = Record<K, T>
> {
key: K
value: T
record: V
}
Loading

0 comments on commit 52fb5c6

Please sign in to comment.