-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
replace .ts with .d.ts declaration file
- Loading branch information
Sherwin H
committed
Oct 10, 2019
1 parent
3eaef7e
commit d1b7fbe
Showing
5 changed files
with
40 additions
and
209 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
// Type definitions for imgix-core-js.js | ||
|
||
// export as namespace ImgixClient; | ||
|
||
/*~ This declaration specifies that the class constructor function | ||
*~ is the exported object from the file | ||
*/ | ||
|
||
/*~ Write your module's methods and properties in this class */ | ||
declare class ImgixClient { | ||
domain: string; | ||
useHTTPS: boolean; | ||
includeLibraryParam: boolean; | ||
secureURLToken: string; | ||
|
||
constructor(opts: {domain: string; secureURLToken?: string; useHTTPS?: boolean; includeLibraryParam?: boolean;}); | ||
|
||
|
||
buildURL(path: string, params?: {}): string; | ||
_sanitizePath(path: string): string; | ||
_buildParams(params: {}): string; | ||
_signParams(path: string, queryParams?: {}): string; | ||
buildSrcSet(path: string, params?: {}): string; | ||
_buildSrcSetPairs(path: string, params?: {}): string; | ||
_buildDPRSrcSet(path: string, params?: {}): string; | ||
} | ||
export = ImgixClient; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.