Skip to content

Commit

Permalink
Treat validation warnings as errors in typedoc (#125)
Browse files Browse the repository at this point in the history
  • Loading branch information
divdavem committed Jan 9, 2024
1 parent d13f7f8 commit 1f559ce
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -949,15 +949,15 @@ export type StoresInputValues<S> = S extends StoreInput<infer T>
? T
: { [K in keyof S]: S[K] extends StoreInput<infer T> ? T : never };

type SyncDeriveFn<T, S> = (values: StoresInputValues<S>) => T;
interface SyncDeriveOptions<T, S> extends Omit<StoreOptions<T>, 'onUse'> {
export type SyncDeriveFn<T, S> = (values: StoresInputValues<S>) => T;
export interface SyncDeriveOptions<T, S> extends Omit<StoreOptions<T>, 'onUse'> {
derive: SyncDeriveFn<T, S>;
}
type AsyncDeriveFn<T, S> = (
export type AsyncDeriveFn<T, S> = (
values: StoresInputValues<S>,
set: OnUseArgument<T>
) => Unsubscriber | void;
interface AsyncDeriveOptions<T, S> extends Omit<StoreOptions<T>, 'onUse'> {
export interface AsyncDeriveOptions<T, S> extends Omit<StoreOptions<T>, 'onUse'> {
derive: AsyncDeriveFn<T, S>;
}
type DeriveFn<T, S> = SyncDeriveFn<T, S> | AsyncDeriveFn<T, S>;
Expand Down
2 changes: 2 additions & 0 deletions typedoc.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
"excludePrivate": true,
"kindSortOrder": ["Function", "Class"],
"out": "./dist/docs",
"treatValidationWarningsAsErrors": true,
"intentionallyNotExported": ["__global.SymbolConstructor.observable"],
"tsconfig": "./tsconfig.d.json",
"visibilityFilters": {}
}

0 comments on commit 1f559ce

Please sign in to comment.