1995
1996
constructor(key: string, defaultValue: T | undefined, metaOrHide?: string | true | { type: string; description: string }) {
1998
>
this._defaultValue = defaultValue;
1999
>
2000
>
// collect all context keys into a central place
2001
>
if (typeof metaOrHide === 'object') {
2002
RawContextKey._info.push({ ...metaOrHide, key });
2004
RawContextKey._info.push({ key, description: metaOrHide, type: defaultValue !== null && defaultValue !== undefined ? typeof defaultValue : undefined });
2005
}
2007
2008
public bindTo(target: IContextKeyService): IContextKey<T> {