@moneko/react 2.1.1 → 2.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,8 +1,10 @@
1
1
  import type { Path } from 'react-router-dom';
2
2
  declare function parse(reserved?: string | string[]): string[];
3
3
  declare function parseReservedWord(reserved?: string | string[]): string[];
4
+ type SearchParams = ConstructorParameters<typeof URLSearchParams>[0];
5
+ type NormalRecord = Record<string, string | number | boolean | undefined | null>;
4
6
  export interface IPath extends Partial<Omit<Path, 'search'>> {
5
- search?: string | URLSearchParams | string[][] | Record<string, string>;
7
+ search?: SearchParams | NormalRecord;
6
8
  }
7
9
  export type To = string | IPath;
8
10
  declare const parseToByReservedWord: (to: To | number, reserved?: string | string[]) => Partial<Path>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@moneko/react",
3
- "version": "2.1.1",
3
+ "version": "2.1.2",
4
4
  "description": "react",
5
5
  "main": "lib/index.js",
6
6
  "scripts": {