Files
DefinitelyTyped/types/first-mate
Glen M dad4c42dd7 Update the Atom type definitions. (#20146)
* Update the Atom type definitions.

* Atom: support additional dtslint rules. Minor fixes to definitions.

* Atom: enable unified signatures for dtslint.

* Atom: fix the scan and replace functions. Enable ban-types in dtslint.

* Atom: enable no-declare-current-package and no-single-declare-module.
2017-10-02 10:41:57 -07:00
..
…
…

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(tokens: FirstMate.Tokens[]) {}