Skip to content

penenin/sugar.d.ts

Repository files navigation

sugar.d.ts

This is a typescript definitions file for sugar.js.

This is also hosted on https://github.com/borisyankov/DefinitelyTyped If you found this via DefinitelyTyped use @jbaldwin or open an issue here so I will see the problem, otherwise it might not be noticed ;-)

2013/08/24 - NOTE: the typescript compiler is having issues with the generics and creates a stackoverflow when using these definitions, there are several issues already opened on CodePlex against TSC.

2013/02/10 - NOTE: there is a bug currently where typescript does not support adding static functions to object types, like Date, within lib.d.ts. Because of this there are some functions that do not work properly until this issue is fixed.

Usage

/// <reference path="sugar.d.ts" />

All functions except for DateRange are added directly to the base classes

  • String
  • Number
  • Array
  • Function

Change log

v1.3.9 - 2013/02/10

Initial version

License

sugar-1.3.9.d.ts may be freely distributed under the MIT license.

Copyright (c) 2013 Josh Baldwin https://github.com/jbaldwin/sugar.d.ts

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

About

sugar.js definitions for typescript

Resources

License

Stars

Watchers

Forks

Packages

No packages published