Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

- tsconfig-test-development.json - added isolatedModules: true #1661

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/authentication/azureTokenCredentials/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
* See License in the project root for license information.
* -------------------------------------------------------------------------------------------
*/
export { TokenCredentialAuthenticationProviderOptions } from "./ITokenCredentialAuthenticationProviderOptions";
export type { TokenCredentialAuthenticationProviderOptions } from "./ITokenCredentialAuthenticationProviderOptions";
export { TokenCredentialAuthenticationProvider } from "./TokenCredentialAuthenticationProvider";
43 changes: 24 additions & 19 deletions src/browser/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,47 +7,52 @@

// eslint-disable-next-line @typescript-eslint/triple-slash-reference
/// <reference path= "../../shims.d.ts" />
export { BatchRequestStep, BatchRequestData, BatchRequestContent, RequestData, BatchRequestBody } from "../content/BatchRequestContent";
export { BatchResponseBody, BatchResponseContent } from "../content/BatchResponseContent";
export type { BatchRequestStep, BatchRequestData, RequestData, BatchRequestBody } from "../content/BatchRequestContent";
export { BatchResponseContent } from "../content/BatchResponseContent";

export { AuthenticationHandler } from "../middleware/AuthenticationHandler";
export { HTTPMessageHandler } from "../middleware/HTTPMessageHandler";
export { Middleware } from "../middleware/IMiddleware";
export type { Middleware } from "../middleware/IMiddleware";
export { RetryHandler } from "../middleware/RetryHandler";
export { RedirectHandler } from "../middleware/RedirectHandler";
export { TelemetryHandler } from "../middleware/TelemetryHandler";
export { MiddlewareFactory } from "../middleware/MiddlewareFactory";
export { AuthenticationHandlerOptions } from "../middleware/options/AuthenticationHandlerOptions";
export { MiddlewareOptions } from "../middleware/options/IMiddlewareOptions";
export { ShouldRetry, RetryHandlerOptions } from "../middleware/options/RetryHandlerOptions";
export { ShouldRedirect, RedirectHandlerOptions } from "../middleware/options/RedirectHandlerOptions";
export type { MiddlewareOptions } from "../middleware/options/IMiddlewareOptions";
export type { ShouldRetry } from "../middleware/options/RetryHandlerOptions";
export { RetryHandlerOptions } from "../middleware/options/RetryHandlerOptions";
export type { ShouldRedirect } from "../middleware/options/RedirectHandlerOptions";
export { RedirectHandlerOptions } from "../middleware/options/RedirectHandlerOptions";
export { FeatureUsageFlag, TelemetryHandlerOptions } from "../middleware/options/TelemetryHandlerOptions";
export { ChaosHandlerOptions } from "../middleware/options/ChaosHandlerOptions";
export { ChaosStrategy } from "../middleware/options/ChaosStrategy";
export { ChaosHandler } from "../middleware/ChaosHandler";

export { SliceType, LargeFileUploadTaskOptions, LargeFileUploadTask, LargeFileUploadSession, FileObject } from "../tasks/LargeFileUploadTask";
export { OneDriveLargeFileUploadTask, OneDriveLargeFileUploadOptions } from "../tasks/OneDriveLargeFileUploadTask";
export type { SliceType, LargeFileUploadTaskOptions, LargeFileUploadSession, FileObject } from "../tasks/LargeFileUploadTask";
export { LargeFileUploadTask } from "../tasks/LargeFileUploadTask";
export type { OneDriveLargeFileUploadOptions } from "../tasks/OneDriveLargeFileUploadTask";
export { OneDriveLargeFileUploadTask } from "../tasks/OneDriveLargeFileUploadTask";
export { getValidRangeSize } from "../tasks/OneDriveLargeFileUploadTaskUtil";
export { StreamUpload } from "../tasks/FileUploadTask/FileObjectClasses/StreamUpload";
export { FileUpload } from "../tasks/FileUploadTask/FileObjectClasses/FileUpload";
export { UploadResult } from "../tasks/FileUploadTask/UploadResult";
export { UploadEventHandlers } from "../tasks/FileUploadTask/Interfaces/IUploadEventHandlers";
export type { UploadEventHandlers } from "../tasks/FileUploadTask/Interfaces/IUploadEventHandlers";
export { Range } from "../tasks/FileUploadTask/Range";
export { PageIteratorCallback, PageIterator, PageCollection, GraphRequestOptions } from "../tasks/PageIterator";
export type { PageIteratorCallback, PageCollection, GraphRequestOptions } from "../tasks/PageIterator";
export { PageIterator } from "../tasks/PageIterator";

export { Client } from "../Client";
export { CustomAuthenticationProvider } from "../CustomAuthenticationProvider";
export { GraphError } from "../GraphError";
export { GraphClientError } from "../GraphClientError";
export { GraphRequest } from "../GraphRequest";
export { AuthProvider } from "../IAuthProvider";
export { AuthenticationProvider } from "../IAuthenticationProvider";
export { AuthenticationProviderOptions } from "../IAuthenticationProviderOptions";
export { AuthProviderCallback } from "../IAuthProviderCallback";
export { ClientOptions } from "../IClientOptions";
export { Context } from "../IContext";
export { NodeFetchInit, FetchOptions } from "../IFetchOptions";
export { GraphRequestCallback } from "../IGraphRequestCallback";
export { Options } from "../IOptions";
export type { AuthProvider } from "../IAuthProvider";
export type { AuthenticationProvider } from "../IAuthenticationProvider";
export type { AuthenticationProviderOptions } from "../IAuthenticationProviderOptions";
export type { AuthProviderCallback } from "../IAuthProviderCallback";
export type { ClientOptions } from "../IClientOptions";
export type { Context } from "../IContext";
export type { NodeFetchInit, FetchOptions } from "../IFetchOptions";
export type { GraphRequestCallback } from "../IGraphRequestCallback";
export type { Options } from "../IOptions";
export { ResponseType } from "../ResponseType";
48 changes: 28 additions & 20 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,47 +8,55 @@
// eslint-disable-next-line @typescript-eslint/triple-slash-reference
/// <reference path= "./../shims.d.ts" />

export { BatchRequestBody, RequestData, BatchRequestContent, BatchRequestData, BatchRequestStep } from "./content/BatchRequestContent";
export { BatchResponseBody, BatchResponseContent } from "./content/BatchResponseContent";
export type { BatchRequestBody, RequestData, BatchRequestData, BatchRequestStep } from "./content/BatchRequestContent";
export { BatchRequestContent } from "./content/BatchRequestContent";
export type { BatchResponseBody } from "./content/BatchResponseContent";
export { BatchResponseContent } from "./content/BatchResponseContent";

export { AuthenticationHandler } from "./middleware/AuthenticationHandler";
export { HTTPMessageHandler } from "./middleware/HTTPMessageHandler";
export { Middleware } from "./middleware/IMiddleware";
export type { Middleware } from "./middleware/IMiddleware";
export { RetryHandler } from "./middleware/RetryHandler";
export { RedirectHandler } from "./middleware/RedirectHandler";
export { TelemetryHandler } from "./middleware/TelemetryHandler";
export { MiddlewareFactory } from "./middleware/MiddlewareFactory";
export { AuthenticationHandlerOptions } from "./middleware/options/AuthenticationHandlerOptions";
export { MiddlewareOptions } from "./middleware/options/IMiddlewareOptions";
export { RetryHandlerOptions, ShouldRetry } from "./middleware/options/RetryHandlerOptions";
export { RedirectHandlerOptions, ShouldRedirect } from "./middleware/options/RedirectHandlerOptions";
export type { MiddlewareOptions } from "./middleware/options/IMiddlewareOptions";
export type { ShouldRetry } from "./middleware/options/RetryHandlerOptions";
export { RetryHandlerOptions } from "./middleware/options/RetryHandlerOptions";
export type { ShouldRedirect } from "./middleware/options/RedirectHandlerOptions";
export { RedirectHandlerOptions } from "./middleware/options/RedirectHandlerOptions";
export { FeatureUsageFlag, TelemetryHandlerOptions } from "./middleware/options/TelemetryHandlerOptions";
export { ChaosHandlerOptions } from "./middleware/options/ChaosHandlerOptions";
export { ChaosStrategy } from "./middleware/options/ChaosStrategy";
export { ChaosHandler } from "./middleware/ChaosHandler";

export { FileObject, LargeFileUploadSession, LargeFileUploadTask, LargeFileUploadTaskOptions, SliceType } from "./tasks/LargeFileUploadTask";
export { OneDriveLargeFileUploadOptions, OneDriveLargeFileUploadTask } from "./tasks/OneDriveLargeFileUploadTask";
export type { FileObject, LargeFileUploadSession, LargeFileUploadTaskOptions, SliceType } from "./tasks/LargeFileUploadTask";
export { LargeFileUploadTask } from "./tasks/LargeFileUploadTask";
export type { OneDriveLargeFileUploadOptions } from "./tasks/OneDriveLargeFileUploadTask";
export { OneDriveLargeFileUploadTask } from "./tasks/OneDriveLargeFileUploadTask";
export { getValidRangeSize } from "./tasks/OneDriveLargeFileUploadTaskUtil";
export { StreamUpload } from "./tasks/FileUploadTask/FileObjectClasses/StreamUpload";
export { FileUpload } from "./tasks/FileUploadTask/FileObjectClasses/FileUpload";
export { UploadResult } from "./tasks/FileUploadTask/UploadResult";
export { UploadEventHandlers } from "./tasks/FileUploadTask/Interfaces/IUploadEventHandlers";
export type { UploadEventHandlers } from "./tasks/FileUploadTask/Interfaces/IUploadEventHandlers";
export { Range } from "./tasks/FileUploadTask/Range";
export { GraphRequestOptions, PageCollection, PageIterator, PageIteratorCallback } from "./tasks/PageIterator";
export type { GraphRequestOptions, PageCollection, PageIteratorCallback } from "./tasks/PageIterator";
export { PageIterator } from "./tasks/PageIterator";

export { Client } from "./Client";
export { CustomAuthenticationProvider } from "./CustomAuthenticationProvider";
export { GraphError } from "./GraphError";
export { GraphClientError } from "./GraphClientError";
export { GraphRequest, URLComponents } from "./GraphRequest";
export { AuthProvider } from "./IAuthProvider";
export { AuthenticationProvider } from "./IAuthenticationProvider";
export { AuthenticationProviderOptions } from "./IAuthenticationProviderOptions";
export { AuthProviderCallback } from "./IAuthProviderCallback";
export { ClientOptions } from "./IClientOptions";
export { Context } from "./IContext";
export { FetchOptions, NodeFetchInit } from "./IFetchOptions";
export { GraphRequestCallback } from "./IGraphRequestCallback";
export { Options } from "./IOptions";
export type { URLComponents } from "./GraphRequest";
export { GraphRequest } from "./GraphRequest";
export type { AuthProvider } from "./IAuthProvider";
export type { AuthenticationProvider } from "./IAuthenticationProvider";
export type { AuthenticationProviderOptions } from "./IAuthenticationProviderOptions";
export type { AuthProviderCallback } from "./IAuthProviderCallback";
export type { ClientOptions } from "./IClientOptions";
export type { Context } from "./IContext";
export type { FetchOptions, NodeFetchInit } from "./IFetchOptions";
export type { GraphRequestCallback } from "./IGraphRequestCallback";
export type { Options } from "./IOptions";
export { ResponseType } from "./ResponseType";
2 changes: 1 addition & 1 deletion test/development/HardCodedAuthenticationProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
*/

import { AuthenticationProvider } from "../../src/IAuthenticationProvider";
import { AccessToken } from "./secrets";
import { AccessToken } from "./secrets.sample";

/**
* @class
Expand Down
3 changes: 2 additions & 1 deletion test/tsconfig-test-development.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"esModuleInterop": true,
"noEmitOnError": true,
"lib": ["dom", "esnext"],
"outDir": "../lib/"
"outDir": "../lib/",
"isolatedModules": true
},
"include": ["./development/", "../src/"]
}
Loading