Skip to content

sohanemon/vromon-kabyo-client

Repository files navigation

If something occurs like undefined is not assignable to 'SoType'.

make the parameter as optional to overcome.

export interface PlaceType {
  name?: string;
  id: string;
  description?: string;
  thumbnail?: string;
  // this will show error if we do not pass the id argument
}

Optional Chaining with objects and function

object_name?.prop1?.prop2?.value;
// if object_name exist then go to prop1 and so on
functionDisplay?.();
// if functionDisplay exist then call '()' it

About

A website that helps the traveler to make a happy tour

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published