Skip to content

Instantly share code, notes, and snippets.

@MrFunctor
Created November 19, 2023 16:16
Show Gist options
  • Save MrFunctor/7f60d5ad211b9f9e56ab02d4695a0f1b to your computer and use it in GitHub Desktop.
Save MrFunctor/7f60d5ad211b9f9e56ab02d4695a0f1b to your computer and use it in GitHub Desktop.
tsconfig.json with common fp-ts namespace imports configured with @unsplash/ts-namespace-import-plugin
{
"compilerOptions": {
"plugins": [
{
"name": "@unsplash/ts-namespace-import-plugin",
"namespaces": {
"A": {
"importPath": "fp-ts/Array"
},
"B": {
"importPath": "fp-ts/boolean"
},
"C": {
"importPath": "fp-ts/Console"
},
"D": {
"importPath": "fp-ts/Date"
},
"E": {
"importPath": "fp-ts/Either"
},
"IO": {
"importPath": "fp-ts/IO"
},
"IOE": {
"importPath": "fp-ts/IOEither"
},
"IOO": {
"importPath": "fp-ts/IOOption"
},
"J": {
"importPath": "fp-ts/Json"
},
"N": {
"importPath": "fp-ts/number"
},
"NEA": {
"importPath": "fp-ts/NonEmptyArray"
},
"O": {
"importPath": "fp-ts/Option"
},
"P": {
"importPath": "fp-ts/Predicate"
},
"R": {
"importPath": "fp-ts/Reader"
},
"RA": {
"importPath": "fp-ts/ReadonlyArray"
},
"RE": {
"importPath": "fp-ts/ReaderEither"
},
"RIO": {
"importPath": "fp-ts/ReaderIO"
},
"RNEA": {
"importPath": "fp-ts/ReadonlyNonEmptyArray"
},
"RT": {
"importPath": "fp-ts/ReaderTask"
},
"RTE": {
"importPath": "fp-ts/ReaderTaskEither"
},
"S": {
"importPath": "fp-ts/string"
},
"T": {
"importPath": "fp-ts/Task"
},
"TE": {
"importPath": "fp-ts/TaskEither"
},
"TO": {
"importPath": "fp-ts/TaskOption"
},
"TU": {
"importPath": "fp-ts/Tuple"
},
}
}
],
},
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment