From f9ab5155cbf45b44ad78ef944cb1822ce78793ff Mon Sep 17 00:00:00 2001 From: Angus Russell Date: Mon, 16 Dec 2019 22:32:02 +1100 Subject: [PATCH] unsplash-js update for version 6.0 (#40908) * Update for unsplash API 6.0 * Update tests for unsplash-js 6.0 --- types/unsplash-js/index.d.ts | 4 ++-- types/unsplash-js/unsplash-js-tests.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/types/unsplash-js/index.d.ts b/types/unsplash-js/index.d.ts index 8eb6222778..25f92c4036 100644 --- a/types/unsplash-js/index.d.ts +++ b/types/unsplash-js/index.d.ts @@ -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 // 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; diff --git a/types/unsplash-js/unsplash-js-tests.ts b/types/unsplash-js/unsplash-js-tests.ts index 262d4c5e02..2a07a15aec 100644 --- a/types/unsplash-js/unsplash-js-tests.ts +++ b/types/unsplash-js/unsplash-js-tests.ts @@ -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}" });