UNPKG

@code-to-json/core

Version:

[![Build Status](https://travis-ci.org/code-to-json/code-to-json.svg?branch=master)](https://travis-ci.org/code-to-json/code-to-json) [![Build Status](https://dev.azure.com/code-to-json/code-to-json/_apis/build/status/code-to-json.code-to-json)](https://d

24 lines 807 B
import { NodeBuilderFlags, NodeFlags, ObjectFlags, SymbolFlags, SymbolFormatFlags, Type, TypeFlags } from 'typescript'; interface FlagsMap { type: TypeFlags; node: NodeFlags; object: ObjectFlags; nodeBuilder: NodeBuilderFlags; symbol: SymbolFlags; symbolFormat: SymbolFormatFlags; } /** * Parse a flag bitmask into strings * @param flags * @param flagMap * @author Kris Selden <https://github.com/krisselden> */ export declare function flagsToString<T extends keyof FlagsMap>(flags: FlagsMap[T], type: T): Flags | undefined; /** * Get the object flags from a type * @param type bitmask of object flags */ export declare function getObjectFlags(type: Type): ObjectFlags | undefined; export declare type Flags = string | string[]; export {}; //# sourceMappingURL=flags.d.ts.map