* Add definitions for atom-mocha-test-runner. * Remove the editorconfig. * Atom: remove editorconfigs, linebreak-style, and all lint disables. |
||
|---|---|---|
| .. | ||
| services | ||
| v0 | ||
| atom-tests.ts | ||
| index.d.ts | ||
| README.md | ||
| tsconfig.json | ||
| tslint.json | ||
Atom API Type Definitions
TypeScript type definitions for the Atom Text Editor public API, which is used to develop packages for the editor. Documentation for the public API can be found here.
Exports
The "atom" Variable
These definitions declare a global static variable named "atom" as ambient. Once these definitions have been referenced within your project, you will be able to access properties and member functions from the AtomEnvironment class off of this variable, as it is an instance of that class.
if (atom.inDevMode()) {}
The Atom Namespace
All of the types used by or referenced by the Atom public API have been pulled into the Atom namespace, providing a consistent and easy way to access each of them, without having to care about where that type actually lives within the Atom codebase.
function example(buffer: Atom.TextBuffer) {}
The AtomCore Namespace
All classes which are core to Atom itself have been provided under the AtomCore namespace.
function example(cursor: AtomCore.Cursor) {}
Service Type Definitions
There are many services provided by other Atom packages that you may want to use within your own Atom package. We bundle type definitions for several of these services with these type definitions.
/// <reference types="atom/services" />
let completionProvider: Atom.Services.Autocomplete.Provider;
The currently supported services are: