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

28 lines (23 loc) 621 B
import * as ts from 'typescript'; import { Flags } from './flags'; import { SourceFileRef } from './processing-queue/ref'; export interface EntityMap { declaration: ts.Declaration; symbol: ts.Symbol; type: ts.Type; node: ts.Node; sourceFile: ts.SourceFile; } export interface SerializedEntity<THING extends string> { entity: THING; id: string; flags?: Flags; text?: string; name?: string; } export type CodePoisition = [string, number, number]; export type CodeRange = [string, number, number, number, number]; export interface HasPosition { sourceFile?: SourceFileRef; location: CodeRange; }