Skip to content

Commit

Permalink
Create new type definition for 'is-url'
Browse files Browse the repository at this point in the history
  • Loading branch information
acid-chicken committed Jan 27, 2019
1 parent db7c83c commit 7864949
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@
"@types/gulp-util": "3.0.34",
"@types/is-root": "1.0.0",
"@types/is-svg": "3.0.0",
"@types/is-url": "1.2.28",
"@types/js-yaml": "3.12.0",
"@types/katex": "0.5.0",
"@types/koa": "2.0.48",
Expand Down
6 changes: 6 additions & 0 deletions src/@types/is-url.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
declare module 'is-url';

declare namespace isUrl {
export function isUrl(string: string): boolean;
}

2 changes: 1 addition & 1 deletion src/config/load.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import * as fs from 'fs';
import { URL } from 'url';
import * as yaml from 'js-yaml';
import { Source, Mixin } from './types';
import isUrl = require('is-url');
import * as isUrl from 'is-url';
const pkg = require('../../package.json');

/**
Expand Down

0 comments on commit 7864949

Please sign in to comment.