I have function like this
export const registerResource = <T, H, M, I extends object, R extends object>(serverConfig: IResourceServerConfig<T, H>, option: IRegisterResourceOption<T, H, M, I, R> = {}) => {
...
}
So I will call look like this
registerResource(foo,bar)
But I would like to definition only 2 type T & H like this
registerResource<any, number>(foo,bar)
But it's not work, did I'm doing stupid and how can I resolve that.
Thanks alot