Fixed some type invalidity

pull/3800/merge^2
Anatole Sot 3 months ago
parent dd66d88892
commit db5298c7fc

@ -283,4 +283,5 @@ export interface SearchOptions {
albumname?: string;
recordingname?: string;
tags?: string[];
tag?: string;
}

@ -4,11 +4,13 @@
"target": "ES2020",
"module": "commonjs",
"outDir": "../dist",
"strict": true,
"noEmit": false,
"baseUrl": ".",
"paths": {
"@server/*": ["*"]
}
},
"typeRoots": ["../node_modules/*", "./types/*"],
},
"include": ["**/*.ts", "type/**/*.d.ts"]
"include": ["**/*.ts", "**/*.d.ts"]
}

@ -6,7 +6,7 @@ declare module 'nodebrainz' {
Release,
SearchOptions,
Work,
} from 'server/api/musicbrainz/interfaces';
} from '@server/api/musicbrainz/interfaces';
interface RawSearchResponse {
created: string;
count: number;
@ -87,7 +87,7 @@ declare module 'nodebrainz' {
): Promise<Work>;
search(
type: string,
search: SearchOptions,
search: SearchOptions | { tag: string },
callback: (
err: Error,
data:

Loading…
Cancel
Save