Skip to content

Commit

Permalink
📝 Export .d.ts and .js.map source maps
Browse files Browse the repository at this point in the history
  • Loading branch information
germanattanasio committed Dec 1, 2017
1 parent 150d92a commit cf91fc9
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 10 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,6 @@ tone-analyzer/*.js
visual-recognition/*.js
text-to-speech/*.js
speech-to-text/*.js
.nyc_output
.nyc_output
**/*.d.ts
**/*.js.map
8 changes: 4 additions & 4 deletions lib/base_service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@ import bufferFrom = require('buffer-from');
import { stripTrailingSlash } from './helper';

// custom interfaces
interface HeaderOptions {
export interface HeaderOptions {
'X-Watson-Learning-Opt-Out'?: boolean;
[key: string]: any;
}

interface UserOptions {
export interface UserOptions {
url?: string;
version_date?: string;
username?: string;
Expand All @@ -40,14 +40,14 @@ interface UserOptions {
token?: string;
}

interface BaseServiceOptions extends UserOptions {
export interface BaseServiceOptions extends UserOptions {
headers: HeaderOptions;
url: string;
jar?: request.CookieJar;
qs: any;
}

interface Credentials {
export interface Credentials {
username: string;
password: string;
api_key: string;
Expand Down
6 changes: 3 additions & 3 deletions lib/helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,17 +27,17 @@ export interface FileObject {
}

// internal interfaces
interface FileOptions {
export interface FileOptions {
filename?: string;
contentType?: string;
}

interface FileParamAttributes {
export interface FileParamAttributes {
data: ReadableStream | Buffer | FileObject;
contentType: string;
}

interface FileStream extends ReadableStream {
export interface FileStream extends ReadableStream {
path: string | Buffer;
}

Expand Down
4 changes: 2 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
// "allowJs": true, /* Allow javascript files to be compiled. */
// "checkJs": true, /* Report errors in .js files. */
// "jsx": "preserve", /* Specify JSX code generation: 'preserve', 'react-native', or 'react'. */
// "declaration": true, /* Generates corresponding '.d.ts' file. */
// "sourceMap": true, /* Generates corresponding '.map' file. */
"declaration": true, /* Generates corresponding '.d.ts' file. */
"sourceMap": true, /* Generates corresponding '.map' file. */
// "outFile": "./", /* Concatenate and emit output to single file. */
// "outDir": "./", /* Redirect output structure to the directory. */
// "rootDir": "./", /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */
Expand Down

0 comments on commit cf91fc9

Please sign in to comment.