mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-11 20:40:20 +00:00
unsplash-js update for version 6.0 (#40908)
* Update for unsplash API 6.0 * Update tests for unsplash-js 6.0
This commit is contained in:
Vendored
+2
-2
@@ -1,4 +1,4 @@
|
||||
// Type definitions for unsplash-js 5.0
|
||||
// Type definitions for unsplash-js 6.0
|
||||
// Project: https://github.com/unsplash/unsplash-js#readme
|
||||
// Definitions by: Andrew Malikov <https://github.com/markupcode>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
@@ -17,7 +17,7 @@ export default class Unsplash {
|
||||
constructor(options: {
|
||||
apiUrl?: string;
|
||||
apiVersion?: string;
|
||||
applicationId: string;
|
||||
accessKey: string;
|
||||
secret: string;
|
||||
callbackUrl?: string;
|
||||
bearerToken?: string;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import Unsplash, { toJson } from "unsplash-js";
|
||||
|
||||
const unsplash = new Unsplash({
|
||||
applicationId: "{APP_ACCESS_KEY}",
|
||||
accessKey: "{APP_ACCESS_KEY}",
|
||||
secret: "{APP_SECRET}"
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user