Skip to content

Instantly share code, notes, and snippets.

View zcherries's full-sized avatar
🎯
Focusing

Zach Herries zcherries

🎯
Focusing
  • San Francisco, CA
View GitHub Profile
// Continuous iterator
function foo() {
// NOTE: don't ever do crazy long-running loops like this
for (let i = 0; i <= 1E10; i++) {
console.log(i);
}
}
// foo();
@zcherries
zcherries / typescriptExampe.jsx
Created November 9, 2018 01:47
examples of typescript annotations
export type OptGroupNestedArrayTypes = Array<Array<string, Array<Array<string, string>>>>;
export type OptionGroupTypes = Array<{
groupLabel: string,
options: Array<{
label: string,
value: string,