how to remove properties via mapped type in TypeScript

前端 未结 2 1056
有刺的猬
有刺的猬 2020-12-09 04:48

Here is the code

class A {
    x = 0;
    y = 0;
    visible = false;
    render() {

    }
}

type RemoveProperties = {
    readonly [P in keyof T         


        
2条回答
提交回复
热议问题