4.0.9 • Published 4 months ago
@types/ember__service v4.0.9
Installation
npm install --save @types/ember__service
Summary
This package contains type definitions for @ember/service (https://emberjs.com/api/ember/3.16/modules/@ember%2Fservice).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/ember__service/v3.
index.d.ts
// Type definitions for non-npm package @ember/service 3.16
// Project: https://emberjs.com/api/ember/3.16/modules/@ember%2Fservice
// Definitions by: Mike North <https://github.com/mike-north>
// Chris Krycho <https://github.com/chriskrycho>
// Dan Freeman <https://github.com/dfreeman>
// James C. Davis <https://github.com/jamescdavis>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 3.7
import EmberObject from '@ember/object';
import ComputedProperty from '@ember/object/computed';
export default class Service extends EmberObject {}
/**
* Creates a property that lazily looks up a service in the container. There
* are no restrictions as to what objects a service can be injected into.
*/
export function inject(): ComputedProperty<Service>; // @inject() foo, foo: inject()
export function inject(target: object, propertyKey: string | symbol): void; // @inject foo
export function inject<K extends keyof Registry>(name: K): ComputedProperty<Registry[K]>; // @inject('store') foo @inject() foo
// A type registry for Ember `Service`s. Meant to be declaration-merged so
// string lookups resolve to the correct type.
// tslint:disable-next-line no-empty-interface strict-export-declare-modifiers
interface Registry {}
Additional Details
- Last updated: Fri, 21 Jan 2022 19:02:11 GMT
- Dependencies: @types/ember__object
- Global values: none
Credits
These definitions were written by Mike North, Chris Krycho, Dan Freeman, and James C. Davis.
4.0.9
4 months ago
3.16.9
4 months ago
4.0.8
6 months ago
3.16.7
6 months ago
3.16.6
7 months ago
3.16.8
6 months ago
3.16.5
8 months ago
3.16.4
8 months ago
4.0.5
8 months ago
4.0.4
8 months ago
4.0.7
6 months ago
4.0.6
7 months ago
4.0.3
11 months ago
3.16.3
11 months ago
4.0.2
1 year ago
4.0.1
2 years ago
4.0.0
2 years ago
3.16.2
2 years ago
3.16.1
4 years ago
3.16.0
4 years ago
3.0.6
4 years ago
3.0.5
5 years ago
3.0.4
5 years ago
3.0.3
5 years ago
3.0.2
6 years ago
3.0.1
6 years ago
3.0.0
6 years ago