goora.me
  • Home
  • About
  • Masputih (Old home)
Subscribe
Tagged

TypeScript

A collection of 1 post

TypeScript

Tips TypeScript

Berikuta ini beberapa tips untuk TS. PartialPake Partial untuk bikin tipe yang nggak semua field-nya harus diisi. type User = { name: string; age: number; } // error: Property 'age' is missing in type '{ name: string; }' // but required in type 'User'.ts(2741) const u1:User = { name: 'aaa' } // no error const u2:

  • Anggie Bratadinata
Anggie Bratadinata 19 Apr 2022 • 2 min read
goora.me © 2022
Powered by Ghost
Served by ShockHosting