Skip to main content

get

get<T>(content: T,property: undefined,defaultValue: T): T
get<T,K>(content: undefined | null | T,property: K,defaultValue: Exclude<PathType<T, K>, undefined | null>): Exclude<PathType<T, K>, undefined | null>
get<T,K>(content: undefined | null | T,property: K,defaultValue: PathType<T, K>): PathType<T, K>
get<T,K>(content: null | T,property: K,defaultValue: PathType<T, K>): PathType<T, K> | undefined
get<T,K>(content: null | T,property: K,defaultValue: null | PathType<T, K>): PathType<T, K> | null

Properties

(Mandatory properties are in bold)
PropertiesTypeDescription
contentT
Additional properties for advanced use cases
PropertiesTypeDescription
defaultValueT
propertyundefined