Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Type {
- propA: string = 10;
- propB: number;
- }
- const fn = (param: Type) => {
- console.log(param);
- };
- fn({
- propB: 10;
- });
- //// print { propB: 10 }
- //// How I can set propA when param no has it?
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement