To define a class with an index signature, just write the index signature in the class:
interface IRawParams {
[key: string]: any
}
class Foo implements IRawParams {
[k: string]: any;
}
To define a class with an index signature, just write the index signature in the class:
interface IRawParams {
[key: string]: any
}
class Foo implements IRawParams {
[k: string]: any;
}