Skip to content

Instantly share code, notes, and snippets.

@akaptur
Created December 14, 2021 01:02
Show Gist options
  • Save akaptur/2736154ed920005a10928002658e9000 to your computer and use it in GitHub Desktop.
Save akaptur/2736154ed920005a10928002658e9000 to your computer and use it in GitHub Desktop.
type A = {
value: string;
}
function my_func(a: A): string {
return a.value;
}
my_func({value: "hi", image: "a gzipped picture of a cat"}); // no error
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment