Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Export interfaces #983

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 4 additions & 4 deletions typings/localforage.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ interface LocalForageDbInstanceOptions {
storeName?: string;
}

interface LocalForageOptions extends LocalForageDbInstanceOptions {
export interface LocalForageOptions extends LocalForageDbInstanceOptions {
driver?: string | string[];

size?: number;
Expand All @@ -14,7 +14,7 @@ interface LocalForageOptions extends LocalForageDbInstanceOptions {
description?: string;
}

interface LocalForageDbMethodsCore {
export interface LocalForageDbMethodsCore {
getItem<T>(key: string, callback?: (err: any, value: T | null) => void): Promise<T | null>;

setItem<T>(key: string, value: T, callback?: (err: any, value: T) => void): Promise<T>;
Expand Down Expand Up @@ -53,7 +53,7 @@ interface LocalForageDriverSupportFunc {
(): Promise<boolean>;
}

interface LocalForageDriver extends LocalForageDriverDbMethods {
export interface LocalForageDriver extends LocalForageDriverDbMethods {
_driver: string;

_initStorage(options: LocalForageOptions): void;
Expand All @@ -73,7 +73,7 @@ interface LocalForageSerializer {

interface LocalForageDbMethods extends LocalForageDbMethodsCore, LocalForageDbMethodsOptional {}

interface LocalForage extends LocalForageDbMethods {
export interface LocalForage extends LocalForageDbMethods {
LOCALSTORAGE: string;
WEBSQL: string;
INDEXEDDB: string;
Expand Down