Skip to content

Commit

Permalink
remove manual type declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
mshustov committed Sep 24, 2020
1 parent 4ab436d commit e187e76
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion packages/kbn-std/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@ export { mapToObject } from './map_to_object';
export { merge } from './merge';
export { pick } from './pick';
export { withTimeout } from './promise';
export { isRelativeUrl, modifyUrl, URLMeaningfulParts, ParsedQuery } from './url';
export { isRelativeUrl, modifyUrl, URLMeaningfulParts } from './url';
export { unset } from './unset';
export { getFlattenedObject } from './get_flattened_object';
6 changes: 1 addition & 5 deletions packages/kbn-std/src/url.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,7 @@
*/

import { format as formatUrl, parse as parseUrl, UrlObject } from 'url';

// duplicate type from 'query-string' to avoid adding the d.ts file to all packages depending on kbn-std
export interface ParsedQuery<T = string> {
[key: string]: T | T[] | null | undefined;
}
import type { ParsedQuery } from 'query-string';

/**
* We define our own typings because the current version of @types/node
Expand Down

0 comments on commit e187e76

Please sign in to comment.