Skip to content

Commit

Permalink
use types
Browse files Browse the repository at this point in the history
  • Loading branch information
idleberg committed Sep 9, 2023
1 parent 0ec7870 commit 38c21f7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions types/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
declare namespace WebPorridge {
interface StorageOptions{
type StorageOptions ={
expires?: string;
prop?: string;
}

interface IndexeddbOptions {
type IndexeddbOptions = {
db: string;
name: string;
}

interface Payload {
type Payload = {
'@expires'?: string;
'@type': 'boolean' | 'date' | 'null' | 'number' | 'object' | 'string' | 'undefined';
'@value': string;
}

interface StorageKeys {
type StorageKeys = {
expires: '@expires';
value: '@value';
type: '@type';
Expand Down

0 comments on commit 38c21f7

Please sign in to comment.