interface StateDefinition {
    [key: string]: BaseChannel | (() => BaseChannel);
}

可索引

[key: string]: BaseChannel | (() => BaseChannel)