Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

typescript Empty Types

class Empty {}
 
function fn(arg: Empty) {
  // do something?
}
 
// No error, but this isn't an 'Empty' ?
fn({ k: 10 });
Try
Source by www.typescriptlang.org #
 
PREVIOUS NEXT
Tagged: #typescript #Empty #Types
ADD COMMENT
Topic
Name
1+4 =