Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
TypeScript
angular make variable optional
ASGM
Programming language:
TypeScript
2021-05-02 18:53:40
0
Q:
angular make variable optional
Stefan
Code:
TypeScript
2021-07-18 23:36:32
export interface User { id: number; name?: string; // interfaces allow fields to be optional }
0
Tags
variable
make
option
angular
var
Related
typescript optional parameters
ts interface optional parameter
initialize empty array typescript
New to Communities?
Join the community