Skip to content

MatteoPieroni/query-properties

Repository files navigation

Return Type

The type of the returned value is unknown. In Typescript you will need to cater for different types or you can cast the return function with as.

const myStringVar = queryProperty(myObject, 'prop.prop') as string;

// Typescript will not error
myStringVar.split();

const myVar = queryProperty(myObject, 'prop.prop');

// Typescript doesn't know the type
myVar.split();

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published