我对Typescript很陌生,无法找到类型定义中是否包含动态键。
例如,这是我努力追求的类型:
export interface IQuery {
locale?: string;
include?: number;
limit?: number;
select?: string;
skip?: number;
order?: string;
// all keys starting with "fields." (e.g. "fields.name[ne]") should be a string
'fields.*'?: string;
}
谢谢!