build revisions and layout updates for toast
This commit is contained in:
parent
b341a3675e
commit
39235193e6
1116 changed files with 130517 additions and 12 deletions
18
node_modules/@hookform/resolvers/io-ts/src/arrayToPath.ts
generated
vendored
Normal file
18
node_modules/@hookform/resolvers/io-ts/src/arrayToPath.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
import * as Either from 'fp-ts/Either';
|
||||
import { pipe } from 'fp-ts/function';
|
||||
|
||||
const arrayToPath = (paths: Either.Either<string, number>[]): string =>
|
||||
paths.reduce(
|
||||
(previous, path, index) =>
|
||||
pipe(
|
||||
path,
|
||||
Either.fold(
|
||||
(key) => `${index > 0 ? '.' : ''}${key}`,
|
||||
(key) => `[${key}]`,
|
||||
),
|
||||
(path) => `${previous}${path}`,
|
||||
),
|
||||
'',
|
||||
);
|
||||
|
||||
export default arrayToPath;
|
||||
Loading…
Add table
Add a link
Reference in a new issue