Skip to content

Instantly share code, notes, and snippets.

@iansmith
Created March 24, 2021 16:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save iansmith/5b8ed83a83e856f9a7be02515e92fcb5 to your computer and use it in GitHub Desktop.
Save iansmith/5b8ed83a83e856f9a7be02515e92fcb5 to your computer and use it in GitHub Desktop.
from evalvite article, type decls for important checkbox
// file: example1/importantcheckbox.ts
// imports omitted
type localProps = {
model: ImportantCheckBoxModel,
}
type localState = {
important: boolean; // needs to match the <boolean> of the attribute in model
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment