Files
DefinitelyTyped/types/first-mate
Glen M ea4008d4e8 Add definitions for atom-mocha-test-runner. (#20380)
* Add definitions for atom-mocha-test-runner.

* Remove the editorconfig.

* Atom: remove editorconfigs, linebreak-style, and all lint disables.
2017-10-09 15:43:18 -07:00
..
2017-10-06 14:03:03 -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(grammar: FirstMate.Grammar) {}