e4722ee457
Posthog's type definitions refer to types in transitive dependencies we don't want to include. Clone posthog.d.ts locally, remove the offending types from it, and provide an overriding mapping in tsconfig. If this proves annoying to maintain, posthog.d.ts could just be an empty file.
36 lines
682 B
JSON
36 lines
682 B
JSON
{
|
|
"compilerOptions": {
|
|
"experimentalDecorators": true,
|
|
"emitDecoratorMetadata": true,
|
|
"resolveJsonModule": true,
|
|
"esModuleInterop": true,
|
|
"module": "commonjs",
|
|
"moduleResolution": "node",
|
|
"target": "es2016",
|
|
"noImplicitAny": false,
|
|
"sourceMap": false,
|
|
"outDir": "./lib",
|
|
"declaration": true,
|
|
"jsx": "react",
|
|
"types": [
|
|
"node",
|
|
"react",
|
|
"flux",
|
|
"react-transition-group"
|
|
],
|
|
"lib": [
|
|
"es2019",
|
|
"dom",
|
|
"dom.iterable"
|
|
],
|
|
"paths": {
|
|
"posthog-js": [
|
|
"./src/@types/posthog.d.ts"
|
|
]
|
|
}
|
|
},
|
|
"include": [
|
|
"./src/**/*.ts",
|
|
"./src/**/*.tsx"
|
|
],
|
|
}
|