mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
12 lines
511 B
TypeScript
12 lines
511 B
TypeScript
// Type definitions for use-persisted-state 0.3
|
|
// Project: https://github.com/donavon/use-persisted-state#readme
|
|
// Definitions by: Karol Majewski <https://github.com/karol-majewski>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
// TypeScript Version: 2.8
|
|
import { useState } from 'react';
|
|
|
|
declare function createPersistedState(key: string, provider?: Pick<Storage, 'getItem' | 'setItem'>): typeof useState;
|
|
|
|
export as namespace createPersistedState;
|
|
export default createPersistedState;
|