stable

Clone or download

Read-only

refactor: Option ADR + TS implementation

No functional change. part of request #31117 Introduce a generic `Option<T>` type Change-Id: I12cf7279447f65a9ec317a91a4bde0309e2c36c3

Modified Files

Name
M adr/0013-neverthrow.md +4 −2 Go to diff View file
A adr/0022-option.md +136 −0 Go to diff View file
M adr/index.md +1 −0 Go to diff View file
A lib/frontend/option/.gitignore +1 −0 Go to diff View file
A lib/frontend/option/README.md +56 −0 Go to diff View file
A lib/frontend/option/package.json +26 −0 Go to diff View file
A lib/frontend/option/pnpm-lock.yaml +7 −0 Go to diff View file
A lib/frontend/option/src/Option.test-d.ts +80 −0 Go to diff View file
A lib/frontend/option/src/Option.test.ts +87 −0 Go to diff View file
A lib/frontend/option/src/Option.ts +64 −0 Go to diff View file
A lib/frontend/option/tsconfig.json +7 −0 Go to diff View file
A lib/frontend/option/vite.config.ts +31 −0 Go to diff View file
M src/common/Option/README.md +7 −18 Go to diff View file
M tests/psalm/psalm.xml +2 −1 Go to diff View file
A tests/unit/common/Option/CustomValueType.php +33 −0 Go to diff View file
A tests/unit/common/Option/TypeTest.php +61 −0 Go to diff View file