Skip to content

Commit

Permalink
fix: precommit api doc check (#37)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhongliang02 authored Nov 21, 2024
1 parent 076c546 commit 87e2bb5
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 17 deletions.
32 changes: 16 additions & 16 deletions etc/starter-kitty-validators.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,51 +22,51 @@ export const createUrlSchema: (options?: UrlValidatorOptions) => ZodSchema<URL,
// @public
export interface EmailValidatorOptions {
domains?: {
domain: string
includeSubdomains?: boolean
}[]
domain: string;
includeSubdomains?: boolean;
}[];
}

// @public
export class OptionsError extends Error {
constructor(message: string)
constructor(message: string);
}

// @public
export interface PathValidatorOptions {
basePath: string
basePath: string;
}

// @public
export class RelUrlValidator extends UrlValidator {
constructor(origin: string | URL)
constructor(origin: string | URL);
}

// @public
export class UrlValidationError extends Error {
constructor(message: string)
constructor(message: string);
}

// @public
export class UrlValidator {
constructor(options?: UrlValidatorOptions)
parse(url: any, fallbackUrl: string | URL): URL
constructor(options?: UrlValidatorOptions);
parse(url: any, fallbackUrl: string | URL): URL;
// (undocumented)
parse(url: any): URL
parse(url: any): URL;
// (undocumented)
parse(url: any, fallbackUrl: undefined): URL
parsePathname(url: any, fallbackUrl: string | URL): string
parse(url: any, fallbackUrl: undefined): URL;
parsePathname(url: any, fallbackUrl: string | URL): string;
// (undocumented)
parsePathname(url: any): string
parsePathname(url: any): string;
// (undocumented)
parsePathname(url: any, fallbackUrl: undefined): string
parsePathname(url: any, fallbackUrl: undefined): string;
}

// @public
export interface UrlValidatorOptions {
baseOrigin?: string
baseOrigin?: string;
// Warning: (ae-forgotten-export) The symbol "UrlValidatorWhitelist" needs to be exported by the entry point index.d.ts
whitelist?: UrlValidatorWhitelist
whitelist?: UrlValidatorWhitelist;
}

```
2 changes: 1 addition & 1 deletion precommit.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ print_success() {
# Run initial commands
pnpm lint:fix || { print_error "pnpm lint:fix failed"; exit 1; }
pnpm lint || { print_error "pnpm lint failed"; exit 1; }
pnpm build || { print_error "pnpm build failed"; exit 1; }
pnpm format || { print_error "pnpm format failed"; exit 1; }
pnpm format:check || { print_error "pnpm format:check failed"; exit 1; }
pnpm turbo build --force || { print_error "pnpm turbo build --force failed"; exit 1; }

# Change directory to packages
cd packages || exit 1
Expand Down

0 comments on commit 87e2bb5

Please sign in to comment.