fix: change Record value to unknown from any
Signed-off-by: Jos Craw <me.joscraw@gmail.com>
This commit is contained in:
@@ -35,7 +35,7 @@ export class LinguistBackendApi {
|
||||
batchSize?: number,
|
||||
useSourceLocation?: boolean,
|
||||
kind?: string[],
|
||||
linguistJsOptions?: Record<string, any>,
|
||||
linguistJsOptions?: Record<string, unknown>,
|
||||
);
|
||||
// (undocumented)
|
||||
getEntityLanguages(entityRef: string): Promise<Languages>;
|
||||
@@ -83,7 +83,7 @@ export interface PluginOptions {
|
||||
// (undocumented)
|
||||
kind?: string[];
|
||||
// (undocumented)
|
||||
linguistJsOptions?: Record<string, any>;
|
||||
linguistJsOptions?: Record<string, unknown>;
|
||||
// (undocumented)
|
||||
schedule?: TaskScheduleDefinition;
|
||||
// (undocumented)
|
||||
|
||||
@@ -57,7 +57,7 @@ export class LinguistBackendApi {
|
||||
private readonly batchSize?: number;
|
||||
private readonly useSourceLocation?: boolean;
|
||||
private readonly kind: string[];
|
||||
private readonly linguistJsOptions?: Record<string, any>;
|
||||
private readonly linguistJsOptions?: Record<string, unknown>;
|
||||
public constructor(
|
||||
logger: Logger,
|
||||
store: LinguistBackendStore,
|
||||
@@ -68,7 +68,7 @@ export class LinguistBackendApi {
|
||||
batchSize?: number,
|
||||
useSourceLocation?: boolean,
|
||||
kind?: string[],
|
||||
linguistJsOptions?: Record<string, any>,
|
||||
linguistJsOptions?: Record<string, unknown>,
|
||||
) {
|
||||
this.logger = logger;
|
||||
this.store = store;
|
||||
|
||||
@@ -38,7 +38,7 @@ export interface PluginOptions {
|
||||
age?: HumanDuration;
|
||||
batchSize?: number;
|
||||
useSourceLocation?: boolean;
|
||||
linguistJsOptions?: Record<string, any>;
|
||||
linguistJsOptions?: Record<string, unknown>;
|
||||
kind?: string[];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user