Skip to content
This repository has been archived by the owner on Mar 11, 2022. It is now read-only.

typed-ember/ember-unsafe-typings

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🛑 ARCHIVED 🛑

ember-unsafe-typings

Typings to use path strings with Ember.Object and Ember.Array APIs:

obj.get('path.to.something');
array.mapBy('path.to.something');
Ember.get(obj, dynamicPathString);

This is an optional dependency because you will lose a great deal of type safety.

person.get('fullNmae'); // typo is no longer caught
let value: string = obj.get('some.number'); // return type is not type-checked

Installation

With npm:

npm install ember-unsafe-typings --save-dev

With yarn:

yarn add ember-unsafe-typings --dev

Usage

Import the module from one of your typescript sources:

// app.ts
import 'ember-unsafe-typings';

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published