Skip to content

Commit

Permalink
use typing from compile
Browse files Browse the repository at this point in the history
  • Loading branch information
ricardo-devis-agullo committed Mar 29, 2024
1 parent 7fcd031 commit 94a2547
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/registry/domain/options-sanitiser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,15 @@ import * as auth from './authentication';

const DEFAULT_NODE_KEEPALIVE_MS = 5000;

type CompileOptions = Omit<
Exclude<Parameters<typeof compileSync>[0], undefined>,
'templates'
>;

export interface RegistryOptions<T = any>
extends Partial<Omit<Config<T>, 'beforePublish'>> {
baseUrl: string;
compileClient?: boolean | { retryLimit?: number; retryInterval?: number };
compileClient?: boolean | CompileOptions;
}

export default function optionsSanitiser(input: RegistryOptions): Config {
Expand Down

0 comments on commit 94a2547

Please sign in to comment.