MCPcopy Index your code
hub / github.com/easrng/tsints

github.com/easrng/tsints @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
3 symbols 11 edges 18 files 0 documented · 0%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

tsints

a parser for typescript types, written in typescript types (no js here!)

testimonials

please no please I beg you — @jakebailey.dev

EM WHAT THE FUCK

ur deranged

hell yeah

i cant wait to do ludicrous shit with ts7 speeds

why are you like this

usage

code like this

import type { Parse } from "./parser/index.ts";
type _ = Parse<"{some:[ts, 'type']}">;

evaluates to a @babel/parser-style AST

type _ = {
  type: "TSTypeLiteral";
  members: [
    {
      type: "TSPropertySignature";
      key: {
        type: "Identifier";
        name: "some";
      };
      computed: false;
      typeAnnotation: {
        type: "TSTypeAnnotation";
        typeAnnotation: {
          type: "TSTupleType";
          elementTypes: [
            {
              type: "TSTypeReference";
              typeName: {
                type: "Identifier";
                name: "ts";
              };
            },
            {
              type: "TSLiteralType";
              literal: {
                type: "StringLiteral";
                raw: "'type'";
              };
            },
          ];
        };
      };
    },
  ];
};

should i use this

idk, do you want to spend 5 extra seconds every time you run tsc waiting for it to evaluate the parsing code?

Extension points exported contracts — how you extend this code

TSKeywordMap (Interface)
(no doc)
parser/constants.ts
NumberFSM (Interface)
(no doc)
tokenizer/constants.ts

Core symbols most depended-on inside this repo

Shape

Interface 2
Function 1

Languages

TypeScript100%

Modules by API surface

tokenizer/constants.ts1 symbols
tests/run.test.ts1 symbols
parser/constants.ts1 symbols

For agents

$ claude mcp add tsints \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact