Skip to content

Commit

Permalink
update deps
Browse files Browse the repository at this point in the history
  • Loading branch information
Tadjaur committed May 15, 2024
1 parent 6810ea7 commit 7b9886e
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 31 deletions.
4 changes: 1 addition & 3 deletions packages/config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,5 @@
"name": "@packrat/config",
"version": "1.0.0",
"private": true,
"main": "src/index.js",
"dependencies": {
}
"main": "src/index.js"
}
4 changes: 1 addition & 3 deletions packages/crosspath/types/lib-interface.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
import { LinkComponent, Router, CreateParam } from './model';
export declare function Link(
props: Parameters<LinkComponent>,
): ReturnType<LinkComponent>;
export declare function Link(props: Parameters<LinkComponent>): ReturnType<LinkComponent>;
export declare const createParam: CreateParam;
export declare function useRouter(): Router;
41 changes: 18 additions & 23 deletions packages/crosspath/types/model/types.d.ts
Original file line number Diff line number Diff line change
@@ -1,32 +1,27 @@
import { FC } from 'react';
import { LinkProps } from 'solito/link';
export interface CreateParamOptions {
initial?: string;
parse?: (param: string) => unknown;
stringify?: (param: unknown) => string;
initial?: string;
parse?: (param: string) => unknown;
stringify?: (param: unknown) => string;
}
export interface Router {
push: (url: URL) => void;
replace: (url: URL) => void;
back: () => void;
push: (url: URL) => void;
replace: (url: URL) => void;
back: () => void;
}
export type LinkComponent = FC<LinkProps>;
export type URL =
| string
| {
pathname?: string;
query?: Record<string, any>;
state?: Record<string, any>;
hash?: string;
as?: string | object;
};
export type URL = string | {
pathname?: string;
query?: Record<string, any>;
state?: Record<string, any>;
hash?: string;
as?: string | object;
};
export type CreateParam = <T>() => {
useParam: (
key: keyof T,
options?: CreateParamOptions,
) => [value: any, setValue: (value: any) => void];
useParams: (key: keyof T) => {
params: T;
setParams: (value: any) => void;
};
useParam: (key: keyof T, options?: CreateParamOptions) => [value: any, setValue: (value: any) => void];
useParams: (key: keyof T) => {
params: T;
setParams: (value: any) => void;
};
};
2 changes: 0 additions & 2 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5326,8 +5326,6 @@ __metadata:
"@packrat/config@workspace:packages/config":
version: 0.0.0-use.local
resolution: "@packrat/config@workspace:packages/config"
dependencies:
react-native: "npm:0.73.6"
languageName: unknown
linkType: soft

Expand Down

0 comments on commit 7b9886e

Please sign in to comment.