File

libs/ngx-pfe/models/unknown-object.model.ts

Description

It is recommended to use a Record<string, unknown> in typescript instead of Object or {}.

This is shortcut to the Record type signaling an unknown Object.

See also: https://github.com/typescript-eslint/typescript-eslint/blob/v4.19.0/packages/eslint-plugin/docs/rules/ban-types.md https://github.com/typescript-eslint/typescript-eslint/issues/2063#issuecomment-675156492

Indexable

[key: string]:
export interface UnknownObject {
  [key: string]: unknown;
}

results matching ""

    No results matching ""