DefinitelyTyped/types/atom
2017-10-06 14:03:03 -07:00
..
services Update the Atom type definitions. (#20146) 2017-10-02 10:41:57 -07:00
v0 Enable strictFunctionTypes (#20373) 2017-10-06 14:03:03 -07:00
.editorconfig Update the Atom type definitions. (#20146) 2017-10-02 10:41:57 -07:00
atom-tests.ts Atom: support the new save* returns. (#20300) 2017-10-05 12:07:52 +09:00
index.d.ts Atom: support the new save* returns. (#20300) 2017-10-05 12:07:52 +09:00
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 Update the Atom type definitions. (#20146) 2017-10-02 10:41:57 -07:00

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: