typescript-rxjs
typescript compiler(3.8.2) reports error
Type '"" | ((name?: string | undefined, scopes?: string[] | undefined) => string) | undefined' is not assignable to type '((name: string, scopes?: string[] | undefined) => string) | unde
fined'.
Type '""' is not assignable to type '((name: string, scopes?: string[] | undefined) => string) | undefined'. TS2322
how to fix:
in runtime.mustache
line: 39
return apiKey && (typeof apiKey === 'function' ? apiKey : () => apiKey);
change to
return apiKey ? (typeof apiKey === 'function' ? apiKey : () => apiKey) : undefined;
line: 44
return accessToken && (typeof accessToken === 'function' ? accessToken : () => accessToken);
change to
return accessToken ? (typeof accessToken === 'function' ? accessToken : () => accessToken) : undefined;
typescript-rxjs
typescript compiler(3.8.2) reports error
how to fix:
in runtime.mustache
line: 39
change to
line: 44
change to