DefinitelyTyped/types/first-mate
2017-10-06 14:03:03 -07:00
..
v4 Enable strictFunctionTypes (#20373) 2017-10-06 14:03:03 -07:00
.editorconfig
first-mate-tests.ts
index.d.ts
README.md Atom: support the new save* returns. (#20300) 2017-10-05 12:07:52 +09:00
tsconfig.json Enable strictFunctionTypes (#20373) 2017-10-06 14:03:03 -07:00
tslint.json

First Mate Type Definitions

TypeScript type definitions for First Mate, which is published as "first-mate" on NPM.

Usage Notes

Exports

The three classes exported from this module are: Grammar, GrammarRegistry, and ScopeSelector.

import { Grammar, GrammarRegistry, ScopeSelector } from "first-mate";
let selector = new ScopeSelector("a | b");

The FirstMate Namespace

Many of the types used by First Mate can be referenced from the FirstMate namespace.

function example(grammar: FirstMate.Grammar) {}