fix: fix typings on npm

This commit is contained in:
Roman Hotsiy 2018-05-31 12:53:38 +03:00
parent 47b2177f58
commit d957ad762d
No known key found for this signature in database
GPG Key ID: 5CB7B3ACABA57CB0
3 changed files with 6 additions and 5 deletions

View File

@ -1,6 +1,6 @@
* *
!bundles/* !bundles/*
!typings/* !typings/**/*
!package.json !package.json
!README.md !README.md
!LICENSE !LICENSE

4
custom.d.ts vendored
View File

@ -18,10 +18,6 @@ declare module '*.css' {
declare var __REDOC_VERSION__: string; declare var __REDOC_VERSION__: string;
declare var __REDOC_REVISION__: string; declare var __REDOC_REVISION__: string;
declare type Dict<T> = {
[key: string]: T;
};
interface Element { interface Element {
scrollIntoViewIfNeeded(centerIfNeeded?: boolean): void; scrollIntoViewIfNeeded(centerIfNeeded?: boolean): void;
} }

View File

@ -1,3 +1,8 @@
export * from './open-api'; export * from './open-api';
export type Omit<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>; export type Omit<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>;
declare global {
type Dict<T> = {
[key: string]: T;
};
}