shinkansen-gears 1.0.59 → 1.0.60
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.
- package/package.json +1 -1
- package/src/index.d.cts +43 -0
package/package.json
CHANGED
package/src/index.d.cts
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
declare module 'shinkansen-gears/gears/reverse' {
|
|
2
|
+
import React from 'react'
|
|
3
|
+
|
|
4
|
+
export type ReverseProps = {
|
|
5
|
+
pathname: string
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export default function Reverse (props: ReverseProps): React.JSX.Element
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
declare module 'shinkansen-gears/gears/forward' {
|
|
12
|
+
import React from 'react'
|
|
13
|
+
|
|
14
|
+
export type ForwardProps = {
|
|
15
|
+
pathname: string
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export default function Forward (props: ForwardProps): React.JSX.Element
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
declare module 'shinkansen-gears/gears' {
|
|
22
|
+
import React from 'react'
|
|
23
|
+
import Immutable from 'immutable'
|
|
24
|
+
|
|
25
|
+
export type GearsProps = {
|
|
26
|
+
reverse: {},
|
|
27
|
+
forward: {},
|
|
28
|
+
pattern: string
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export type GearsState = {
|
|
32
|
+
reverse?: Immutable.Map<{}, {}>
|
|
33
|
+
forward?: Immutable.Map<{}, {}>
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export function renderReverse (reverse: {}, pattern: string | void): React.JSX.Element | null
|
|
37
|
+
export function renderForward (forward: {}, pattern: string | void): React.JSX.Element | null
|
|
38
|
+
export default class Gears extends React.Component<GearsProps, GearsState> {}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
declare module 'shinkansen-gears' {
|
|
42
|
+
export { default as Gears } from 'shinkansen-gears/gears'
|
|
43
|
+
}
|