Skip to content

Commit

Permalink
fix: fix typings on npm
Browse files Browse the repository at this point in the history
  • Loading branch information
RomanHotsiy committed May 31, 2018
1 parent 47b2177 commit d957ad7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .npmignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
*
!bundles/*
!typings/*
!typings/**/*
!package.json
!README.md
!LICENSE
4 changes: 0 additions & 4 deletions custom.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,6 @@ declare module '*.css' {
declare var __REDOC_VERSION__: string;
declare var __REDOC_REVISION__: string;

declare type Dict<T> = {
[key: string]: T;
};

interface Element {
scrollIntoViewIfNeeded(centerIfNeeded?: boolean): void;
}
5 changes: 5 additions & 0 deletions src/types/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
export * from './open-api';

export type Omit<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>;
declare global {
type Dict<T> = {
[key: string]: T;
};
}

0 comments on commit d957ad7

Please sign in to comment.