angularjs - how to run ngStorage with typeScript -
is possible include ngstorage within typescript? ts2304
error can't find .d.ts
file @ definitelytyped include. wanna store tokens use in rest requests. other suggestions on this? couldn't make working $sessionstorage either. apparently don't have enough knowledge typescript, might not include should have. in advance.
short answer
yes!
longer answer
yes can use ngstorage
typescript.
being typescript superset of javascript, can in javascript can in typescript (note there differences, not in regards using other libraries). if unable find .d.ts
file module have 2 choices use it.
- specify type of of services/factories have type of
any
- create own
.d.ts
represent module, or @ least pieces of using
if decide head down route of #2, nice community submit pull request typed repo include definition created.
Comments
Post a Comment