@la-main-verte/shared-types 1.0.55 → 1.0.57
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/README.md +26 -26
- package/package.json +16 -16
- package/src/alert.d.ts +124 -124
- package/src/apiError.d.ts +28 -28
- package/src/calendarView.d.ts +9 -9
- package/src/device.d.ts +52 -52
- package/src/fertilizer.d.ts +20 -20
- package/src/gardenMap.d.ts +90 -90
- package/src/gardenOverview.d.ts +79 -79
- package/src/home.api.d.ts +159 -159
- package/src/image.d.ts +10 -10
- package/src/index.ts +27 -27
- package/src/member.d.ts +61 -61
- package/src/note.d.ts +28 -28
- package/src/plant.d.ts +85 -85
- package/src/plantSelection.d.ts +13 -13
- package/src/plants.api.d.ts +84 -84
- package/src/selection.d.ts +55 -54
- package/src/sessions.api.d.ts +134 -134
- package/src/taggedItem.d.ts +12 -12
- package/src/task.d.ts +40 -40
- package/src/users.api.d.ts +90 -90
- package/src/utmParams.d.ts +134 -134
- package/tsconfig.json +110 -110
package/src/utmParams.d.ts
CHANGED
|
@@ -1,134 +1,134 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* UTMSource - Identifies the origin platform or website that sent the traffic
|
|
3
|
-
*
|
|
4
|
-
* This type answers the question: "Where did this visitor come from?"
|
|
5
|
-
* It tracks the specific platform, website, or source that generated the traffic.
|
|
6
|
-
*
|
|
7
|
-
* Common values are included in the union type, but custom domains/values are also allowed.
|
|
8
|
-
*/
|
|
9
|
-
export type UTMSource =
|
|
10
|
-
| 'google' // Google search results or Google Ads
|
|
11
|
-
| 'facebook' // Facebook posts, ads, or shared content
|
|
12
|
-
| 'instagram' // Instagram posts, stories, or ads
|
|
13
|
-
| 'youtube' // YouTube videos, ads, or descriptions
|
|
14
|
-
| 'email' // Email newsletter campaigns
|
|
15
|
-
| 'direct' // Direct visits to the website
|
|
16
|
-
| 'Brevo' // Our newsletter software
|
|
17
|
-
| (string & {}) // Custom domains like 'semencesduportage.com' or any other string
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
* UTMMedium - Identifies the marketing channel or method used
|
|
21
|
-
*
|
|
22
|
-
* This type answers the question: "What type of marketing brought this visitor?"
|
|
23
|
-
* It categorizes the marketing method, whether paid, organic, or referral-based.
|
|
24
|
-
*
|
|
25
|
-
* Common values are included in the union type, but custom values are also allowed.
|
|
26
|
-
*/
|
|
27
|
-
export type UTMMedium =
|
|
28
|
-
| 'cpc' // Cost-per-click advertising (Google Ads, Facebook Ads, etc.)
|
|
29
|
-
| 'paid' // Paid social media advertising campaigns
|
|
30
|
-
| 'organic' // Free/organic traffic (search engine results, social media posts)
|
|
31
|
-
| 'email' // Email marketing campaigns and newsletters
|
|
32
|
-
| 'push' // Push notification campaigns
|
|
33
|
-
| 'display' // Display/banner advertising
|
|
34
|
-
| 'referral' // Referral traffic from partnerships or other websites
|
|
35
|
-
| 'affiliate' // Affiliate marketing programs
|
|
36
|
-
| (string & {}) // Any other custom medium
|
|
37
|
-
|
|
38
|
-
/**
|
|
39
|
-
* UTMCampaign - Identifies the specific marketing campaign name
|
|
40
|
-
*
|
|
41
|
-
* This type answers the question: "Which specific campaign generated this traffic?"
|
|
42
|
-
* It allows you to track performance across different marketing initiatives.
|
|
43
|
-
*
|
|
44
|
-
* Examples:
|
|
45
|
-
* - 'alert_ID' - Alert based campaigns
|
|
46
|
-
* - 'summer_sale_2024' - Seasonal sales campaigns
|
|
47
|
-
* - 'new_user_discount' - User acquisition campaigns
|
|
48
|
-
* - 'retention_series' - Customer retention campaigns
|
|
49
|
-
*/
|
|
50
|
-
export type UTMCampaign = 'reel' | 'alert' | string
|
|
51
|
-
|
|
52
|
-
/**
|
|
53
|
-
* UTMTerm - Identifies the specific keywords or search terms used
|
|
54
|
-
*
|
|
55
|
-
* This type answers the question: "What keywords or terms led to this visit?"
|
|
56
|
-
* It's particularly useful for paid search campaigns and organic search tracking.
|
|
57
|
-
*
|
|
58
|
-
* Examples:
|
|
59
|
-
* - 'tomato_seeds' - Specific keyword for tomato seed searches
|
|
60
|
-
* - 'planting_guide' - Specific keyword for planting guide searches
|
|
61
|
-
* - 'organic_fertilizer' - Product-specific keywords
|
|
62
|
-
* - 'garden_planning' - Service-related keywords
|
|
63
|
-
*/
|
|
64
|
-
export type UTMTerm = string
|
|
65
|
-
|
|
66
|
-
/**
|
|
67
|
-
* UTMContent - Identifies the specific content variation or creative element
|
|
68
|
-
*
|
|
69
|
-
* This type answers the question: "Which specific content version was clicked?"
|
|
70
|
-
* It enables A/B testing and creative performance tracking.
|
|
71
|
-
*
|
|
72
|
-
* Examples:
|
|
73
|
-
* - 'headline_a' - Version A of a headline for A/B testing
|
|
74
|
-
* - 'image_garden_1' - Specific image used in the campaign
|
|
75
|
-
* - 'link_top_banner' - Specific link placement (top banner)
|
|
76
|
-
* - 'cta_button_blue' - Specific call-to-action button
|
|
77
|
-
*/
|
|
78
|
-
export type UTMContent = string
|
|
79
|
-
|
|
80
|
-
/**
|
|
81
|
-
* UTMParams - Complete interface for all UTM tracking parameters
|
|
82
|
-
*
|
|
83
|
-
* This interface combines all UTM parameters into a single object for easy
|
|
84
|
-
* tracking and analytics. All parameters are optional to allow flexible usage.
|
|
85
|
-
*
|
|
86
|
-
* COOKIE STORAGE:
|
|
87
|
-
* Each parameter is stored as a separate cookie:
|
|
88
|
-
* - utm_source
|
|
89
|
-
* - utm_medium
|
|
90
|
-
* - utm_campaign
|
|
91
|
-
* - utm_term
|
|
92
|
-
* - utm_content
|
|
93
|
-
* - fbclid
|
|
94
|
-
* - fbp
|
|
95
|
-
* - gclid
|
|
96
|
-
*
|
|
97
|
-
* Usage example:
|
|
98
|
-
* const utmParams: UTMParams = {
|
|
99
|
-
* utm_source: 'facebook',
|
|
100
|
-
* utm_medium: 'paid',
|
|
101
|
-
* utm_campaign: 'hardiness_zone',
|
|
102
|
-
* utm_term: 'tomato_seeds',
|
|
103
|
-
* utm_content: 'headline_a',
|
|
104
|
-
* fbclid: 'IwAR123...',
|
|
105
|
-
* fbp: 'fb.1.1234567890.1234567890',
|
|
106
|
-
* gclid: 'EAIaIQobChMI...'
|
|
107
|
-
* };
|
|
108
|
-
*/
|
|
109
|
-
export interface UTMParams {
|
|
110
|
-
/** Unique UUID session identifier from front-end tracking script */
|
|
111
|
-
uuid?: string
|
|
112
|
-
/** The source platform that generated the traffic */
|
|
113
|
-
utm_source?: UTMSource
|
|
114
|
-
/** The marketing channel or method used */
|
|
115
|
-
utm_medium?: UTMMedium
|
|
116
|
-
/** The specific campaign name */
|
|
117
|
-
utm_campaign?: UTMCampaign
|
|
118
|
-
/** The keywords or search terms used */
|
|
119
|
-
utm_term?: UTMTerm
|
|
120
|
-
/** The specific content variation or creative element */
|
|
121
|
-
utm_content?: UTMContent
|
|
122
|
-
/** Facebook click identifier for attribution (stored as fbclid in URL) */
|
|
123
|
-
fbclid?: string
|
|
124
|
-
/** Facebook browser ID for pixel tracking (stored as _fbp cookie) */
|
|
125
|
-
fbp?: string
|
|
126
|
-
/** Google Ads click identifier for attribution (stored as gclid in URL) */
|
|
127
|
-
gclid?: string
|
|
128
|
-
/** Google Ads click identifier for iOS/Android app to web (Google surfaces) */
|
|
129
|
-
gbraid?: string
|
|
130
|
-
/** Google Ads click identifier for iOS/Android app to web (non-Google surfaces) */
|
|
131
|
-
wbraid?: string
|
|
132
|
-
/** OLD Referral source from partners - now utm_source=jardinierparesseux */
|
|
133
|
-
referrer?: string
|
|
134
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* UTMSource - Identifies the origin platform or website that sent the traffic
|
|
3
|
+
*
|
|
4
|
+
* This type answers the question: "Where did this visitor come from?"
|
|
5
|
+
* It tracks the specific platform, website, or source that generated the traffic.
|
|
6
|
+
*
|
|
7
|
+
* Common values are included in the union type, but custom domains/values are also allowed.
|
|
8
|
+
*/
|
|
9
|
+
export type UTMSource =
|
|
10
|
+
| 'google' // Google search results or Google Ads
|
|
11
|
+
| 'facebook' // Facebook posts, ads, or shared content
|
|
12
|
+
| 'instagram' // Instagram posts, stories, or ads
|
|
13
|
+
| 'youtube' // YouTube videos, ads, or descriptions
|
|
14
|
+
| 'email' // Email newsletter campaigns
|
|
15
|
+
| 'direct' // Direct visits to the website
|
|
16
|
+
| 'Brevo' // Our newsletter software
|
|
17
|
+
| (string & {}) // Custom domains like 'semencesduportage.com' or any other string
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* UTMMedium - Identifies the marketing channel or method used
|
|
21
|
+
*
|
|
22
|
+
* This type answers the question: "What type of marketing brought this visitor?"
|
|
23
|
+
* It categorizes the marketing method, whether paid, organic, or referral-based.
|
|
24
|
+
*
|
|
25
|
+
* Common values are included in the union type, but custom values are also allowed.
|
|
26
|
+
*/
|
|
27
|
+
export type UTMMedium =
|
|
28
|
+
| 'cpc' // Cost-per-click advertising (Google Ads, Facebook Ads, etc.)
|
|
29
|
+
| 'paid' // Paid social media advertising campaigns
|
|
30
|
+
| 'organic' // Free/organic traffic (search engine results, social media posts)
|
|
31
|
+
| 'email' // Email marketing campaigns and newsletters
|
|
32
|
+
| 'push' // Push notification campaigns
|
|
33
|
+
| 'display' // Display/banner advertising
|
|
34
|
+
| 'referral' // Referral traffic from partnerships or other websites
|
|
35
|
+
| 'affiliate' // Affiliate marketing programs
|
|
36
|
+
| (string & {}) // Any other custom medium
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* UTMCampaign - Identifies the specific marketing campaign name
|
|
40
|
+
*
|
|
41
|
+
* This type answers the question: "Which specific campaign generated this traffic?"
|
|
42
|
+
* It allows you to track performance across different marketing initiatives.
|
|
43
|
+
*
|
|
44
|
+
* Examples:
|
|
45
|
+
* - 'alert_ID' - Alert based campaigns
|
|
46
|
+
* - 'summer_sale_2024' - Seasonal sales campaigns
|
|
47
|
+
* - 'new_user_discount' - User acquisition campaigns
|
|
48
|
+
* - 'retention_series' - Customer retention campaigns
|
|
49
|
+
*/
|
|
50
|
+
export type UTMCampaign = 'reel' | 'alert' | string
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* UTMTerm - Identifies the specific keywords or search terms used
|
|
54
|
+
*
|
|
55
|
+
* This type answers the question: "What keywords or terms led to this visit?"
|
|
56
|
+
* It's particularly useful for paid search campaigns and organic search tracking.
|
|
57
|
+
*
|
|
58
|
+
* Examples:
|
|
59
|
+
* - 'tomato_seeds' - Specific keyword for tomato seed searches
|
|
60
|
+
* - 'planting_guide' - Specific keyword for planting guide searches
|
|
61
|
+
* - 'organic_fertilizer' - Product-specific keywords
|
|
62
|
+
* - 'garden_planning' - Service-related keywords
|
|
63
|
+
*/
|
|
64
|
+
export type UTMTerm = string
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* UTMContent - Identifies the specific content variation or creative element
|
|
68
|
+
*
|
|
69
|
+
* This type answers the question: "Which specific content version was clicked?"
|
|
70
|
+
* It enables A/B testing and creative performance tracking.
|
|
71
|
+
*
|
|
72
|
+
* Examples:
|
|
73
|
+
* - 'headline_a' - Version A of a headline for A/B testing
|
|
74
|
+
* - 'image_garden_1' - Specific image used in the campaign
|
|
75
|
+
* - 'link_top_banner' - Specific link placement (top banner)
|
|
76
|
+
* - 'cta_button_blue' - Specific call-to-action button
|
|
77
|
+
*/
|
|
78
|
+
export type UTMContent = string
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* UTMParams - Complete interface for all UTM tracking parameters
|
|
82
|
+
*
|
|
83
|
+
* This interface combines all UTM parameters into a single object for easy
|
|
84
|
+
* tracking and analytics. All parameters are optional to allow flexible usage.
|
|
85
|
+
*
|
|
86
|
+
* COOKIE STORAGE:
|
|
87
|
+
* Each parameter is stored as a separate cookie:
|
|
88
|
+
* - utm_source
|
|
89
|
+
* - utm_medium
|
|
90
|
+
* - utm_campaign
|
|
91
|
+
* - utm_term
|
|
92
|
+
* - utm_content
|
|
93
|
+
* - fbclid
|
|
94
|
+
* - fbp
|
|
95
|
+
* - gclid
|
|
96
|
+
*
|
|
97
|
+
* Usage example:
|
|
98
|
+
* const utmParams: UTMParams = {
|
|
99
|
+
* utm_source: 'facebook',
|
|
100
|
+
* utm_medium: 'paid',
|
|
101
|
+
* utm_campaign: 'hardiness_zone',
|
|
102
|
+
* utm_term: 'tomato_seeds',
|
|
103
|
+
* utm_content: 'headline_a',
|
|
104
|
+
* fbclid: 'IwAR123...',
|
|
105
|
+
* fbp: 'fb.1.1234567890.1234567890',
|
|
106
|
+
* gclid: 'EAIaIQobChMI...'
|
|
107
|
+
* };
|
|
108
|
+
*/
|
|
109
|
+
export interface UTMParams {
|
|
110
|
+
/** Unique UUID session identifier from front-end tracking script */
|
|
111
|
+
uuid?: string
|
|
112
|
+
/** The source platform that generated the traffic */
|
|
113
|
+
utm_source?: UTMSource
|
|
114
|
+
/** The marketing channel or method used */
|
|
115
|
+
utm_medium?: UTMMedium
|
|
116
|
+
/** The specific campaign name */
|
|
117
|
+
utm_campaign?: UTMCampaign
|
|
118
|
+
/** The keywords or search terms used */
|
|
119
|
+
utm_term?: UTMTerm
|
|
120
|
+
/** The specific content variation or creative element */
|
|
121
|
+
utm_content?: UTMContent
|
|
122
|
+
/** Facebook click identifier for attribution (stored as fbclid in URL) */
|
|
123
|
+
fbclid?: string
|
|
124
|
+
/** Facebook browser ID for pixel tracking (stored as _fbp cookie) */
|
|
125
|
+
fbp?: string
|
|
126
|
+
/** Google Ads click identifier for attribution (stored as gclid in URL) */
|
|
127
|
+
gclid?: string
|
|
128
|
+
/** Google Ads click identifier for iOS/Android app to web (Google surfaces) */
|
|
129
|
+
gbraid?: string
|
|
130
|
+
/** Google Ads click identifier for iOS/Android app to web (non-Google surfaces) */
|
|
131
|
+
wbraid?: string
|
|
132
|
+
/** OLD Referral source from partners - now utm_source=jardinierparesseux */
|
|
133
|
+
referrer?: string
|
|
134
|
+
}
|
package/tsconfig.json
CHANGED
|
@@ -1,110 +1,110 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
/* Visit https://aka.ms/tsconfig to read more about this file */
|
|
4
|
-
|
|
5
|
-
/* Projects */
|
|
6
|
-
// "incremental": true, /* Save .tsbuildinfo files to allow for incremental compilation of projects. */
|
|
7
|
-
// "composite": true, /* Enable constraints that allow a TypeScript project to be used with project references. */
|
|
8
|
-
// "tsBuildInfoFile": "./.tsbuildinfo", /* Specify the path to .tsbuildinfo incremental compilation file. */
|
|
9
|
-
// "disableSourceOfProjectReferenceRedirect": true, /* Disable preferring source files instead of declaration files when referencing composite projects. */
|
|
10
|
-
// "disableSolutionSearching": true, /* Opt a project out of multi-project reference checking when editing. */
|
|
11
|
-
// "disableReferencedProjectLoad": true, /* Reduce the number of projects loaded automatically by TypeScript. */
|
|
12
|
-
|
|
13
|
-
/* Language and Environment */
|
|
14
|
-
"target": "es2016" /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */,
|
|
15
|
-
// "lib": [], /* Specify a set of bundled library declaration files that describe the target runtime environment. */
|
|
16
|
-
// "jsx": "preserve", /* Specify what JSX code is generated. */
|
|
17
|
-
// "experimentalDecorators": true, /* Enable experimental support for legacy experimental decorators. */
|
|
18
|
-
// "emitDecoratorMetadata": true, /* Emit design-type metadata for decorated declarations in source files. */
|
|
19
|
-
// "jsxFactory": "", /* Specify the JSX factory function used when targeting React JSX emit, e.g. 'React.createElement' or 'h'. */
|
|
20
|
-
// "jsxFragmentFactory": "", /* Specify the JSX Fragment reference used for fragments when targeting React JSX emit e.g. 'React.Fragment' or 'Fragment'. */
|
|
21
|
-
// "jsxImportSource": "", /* Specify module specifier used to import the JSX factory functions when using 'jsx: react-jsx*'. */
|
|
22
|
-
// "reactNamespace": "", /* Specify the object invoked for 'createElement'. This only applies when targeting 'react' JSX emit. */
|
|
23
|
-
// "noLib": true, /* Disable including any library files, including the default lib.d.ts. */
|
|
24
|
-
// "useDefineForClassFields": true, /* Emit ECMAScript-standard-compliant class fields. */
|
|
25
|
-
// "moduleDetection": "auto", /* Control what method is used to detect module-format JS files. */
|
|
26
|
-
|
|
27
|
-
/* Modules */
|
|
28
|
-
"module": "commonjs" /* Specify what module code is generated. */,
|
|
29
|
-
// "rootDir": "./", /* Specify the root folder within your source files. */
|
|
30
|
-
// "moduleResolution": "node10", /* Specify how TypeScript looks up a file from a given module specifier. */
|
|
31
|
-
// "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */
|
|
32
|
-
// "paths": {}, /* Specify a set of entries that re-map imports to additional lookup locations. */
|
|
33
|
-
// "rootDirs": [], /* Allow multiple folders to be treated as one when resolving modules. */
|
|
34
|
-
// "typeRoots": [], /* Specify multiple folders that act like './node_modules/@types'. */
|
|
35
|
-
// "types": [], /* Specify type package names to be included without being referenced in a source file. */
|
|
36
|
-
// "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */
|
|
37
|
-
// "moduleSuffixes": [], /* List of file name suffixes to search when resolving a module. */
|
|
38
|
-
// "allowImportingTsExtensions": true, /* Allow imports to include TypeScript file extensions. Requires '--moduleResolution bundler' and either '--noEmit' or '--emitDeclarationOnly' to be set. */
|
|
39
|
-
// "resolvePackageJsonExports": true, /* Use the package.json 'exports' field when resolving package imports. */
|
|
40
|
-
// "resolvePackageJsonImports": true, /* Use the package.json 'imports' field when resolving imports. */
|
|
41
|
-
// "customConditions": [], /* Conditions to set in addition to the resolver-specific defaults when resolving imports. */
|
|
42
|
-
// "resolveJsonModule": true, /* Enable importing .json files. */
|
|
43
|
-
// "allowArbitraryExtensions": true, /* Enable importing files with any extension, provided a declaration file is present. */
|
|
44
|
-
// "noResolve": true, /* Disallow 'import's, 'require's or '<reference>'s from expanding the number of files TypeScript should add to a project. */
|
|
45
|
-
|
|
46
|
-
/* JavaScript Support */
|
|
47
|
-
// "allowJs": true, /* Allow JavaScript files to be a part of your program. Use the 'checkJS' option to get errors from these files. */
|
|
48
|
-
// "checkJs": true, /* Enable error reporting in type-checked JavaScript files. */
|
|
49
|
-
// "maxNodeModuleJsDepth": 1, /* Specify the maximum folder depth used for checking JavaScript files from 'node_modules'. Only applicable with 'allowJs'. */
|
|
50
|
-
|
|
51
|
-
/* Emit */
|
|
52
|
-
"declaration": true /* Generate .d.ts files from TypeScript and JavaScript files in your project. */,
|
|
53
|
-
// "declarationMap": true, /* Create sourcemaps for d.ts files. */
|
|
54
|
-
// "emitDeclarationOnly": true, /* Only output d.ts files and not JavaScript files. */
|
|
55
|
-
// "sourceMap": true, /* Create source map files for emitted JavaScript files. */
|
|
56
|
-
// "inlineSourceMap": true, /* Include sourcemap files inside the emitted JavaScript. */
|
|
57
|
-
// "outFile": "./", /* Specify a file that bundles all outputs into one JavaScript file. If 'declaration' is true, also designates a file that bundles all .d.ts output. */
|
|
58
|
-
"outDir": "./dist" /* Specify an output folder for all emitted files. */,
|
|
59
|
-
// "removeComments": true, /* Disable emitting comments. */
|
|
60
|
-
// "noEmit": true, /* Disable emitting files from a compilation. */
|
|
61
|
-
// "importHelpers": true, /* Allow importing helper functions from tslib once per project, instead of including them per-file. */
|
|
62
|
-
// "downlevelIteration": true, /* Emit more compliant, but verbose and less performant JavaScript for iteration. */
|
|
63
|
-
// "sourceRoot": "", /* Specify the root path for debuggers to find the reference source code. */
|
|
64
|
-
// "mapRoot": "", /* Specify the location where debugger should locate map files instead of generated locations. */
|
|
65
|
-
// "inlineSources": true, /* Include source code in the sourcemaps inside the emitted JavaScript. */
|
|
66
|
-
// "emitBOM": true, /* Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files. */
|
|
67
|
-
// "newLine": "crlf", /* Set the newline character for emitting files. */
|
|
68
|
-
// "stripInternal": true, /* Disable emitting declarations that have '@internal' in their JSDoc comments. */
|
|
69
|
-
// "noEmitHelpers": true, /* Disable generating custom helper functions like '__extends' in compiled output. */
|
|
70
|
-
// "noEmitOnError": true, /* Disable emitting files if any type checking errors are reported. */
|
|
71
|
-
// "preserveConstEnums": true, /* Disable erasing 'const enum' declarations in generated code. */
|
|
72
|
-
// "declarationDir": "./", /* Specify the output directory for generated declaration files. */
|
|
73
|
-
|
|
74
|
-
/* Interop Constraints */
|
|
75
|
-
// "isolatedModules": true, /* Ensure that each file can be safely transpiled without relying on other imports. */
|
|
76
|
-
// "verbatimModuleSyntax": true, /* Do not transform or elide any imports or exports not marked as type-only, ensuring they are written in the output file's format based on the 'module' setting. */
|
|
77
|
-
// "isolatedDeclarations": true, /* Require sufficient annotation on exports so other tools can trivially generate declaration files. */
|
|
78
|
-
// "allowSyntheticDefaultImports": true, /* Allow 'import x from y' when a module doesn't have a default export. */
|
|
79
|
-
"esModuleInterop": true /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility. */,
|
|
80
|
-
// "preserveSymlinks": true, /* Disable resolving symlinks to their realpath. This correlates to the same flag in node. */
|
|
81
|
-
"forceConsistentCasingInFileNames": true /* Ensure that casing is correct in imports. */,
|
|
82
|
-
|
|
83
|
-
/* Type Checking */
|
|
84
|
-
"strict": true /* Enable all strict type-checking options. */,
|
|
85
|
-
// "noImplicitAny": true, /* Enable error reporting for expressions and declarations with an implied 'any' type. */
|
|
86
|
-
// "strictNullChecks": true, /* When type checking, take into account 'null' and 'undefined'. */
|
|
87
|
-
// "strictFunctionTypes": true, /* When assigning functions, check to ensure parameters and the return values are subtype-compatible. */
|
|
88
|
-
// "strictBindCallApply": true, /* Check that the arguments for 'bind', 'call', and 'apply' methods match the original function. */
|
|
89
|
-
// "strictPropertyInitialization": true, /* Check for class properties that are declared but not set in the constructor. */
|
|
90
|
-
// "noImplicitThis": true, /* Enable error reporting when 'this' is given the type 'any'. */
|
|
91
|
-
// "useUnknownInCatchVariables": true, /* Default catch clause variables as 'unknown' instead of 'any'. */
|
|
92
|
-
// "alwaysStrict": true, /* Ensure 'use strict' is always emitted. */
|
|
93
|
-
// "noUnusedLocals": true, /* Enable error reporting when local variables aren't read. */
|
|
94
|
-
// "noUnusedParameters": true, /* Raise an error when a function parameter isn't read. */
|
|
95
|
-
// "exactOptionalPropertyTypes": true, /* Interpret optional property types as written, rather than adding 'undefined'. */
|
|
96
|
-
// "noImplicitReturns": true, /* Enable error reporting for codepaths that do not explicitly return in a function. */
|
|
97
|
-
// "noFallthroughCasesInSwitch": true, /* Enable error reporting for fallthrough cases in switch statements. */
|
|
98
|
-
// "noUncheckedIndexedAccess": true, /* Add 'undefined' to a type when accessed using an index. */
|
|
99
|
-
// "noImplicitOverride": true, /* Ensure overriding members in derived classes are marked with an override modifier. */
|
|
100
|
-
// "noPropertyAccessFromIndexSignature": true, /* Enforces using indexed accessors for keys declared using an indexed type. */
|
|
101
|
-
// "allowUnusedLabels": true, /* Disable error reporting for unused labels. */
|
|
102
|
-
// "allowUnreachableCode": true, /* Disable error reporting for unreachable code. */
|
|
103
|
-
|
|
104
|
-
/* Completeness */
|
|
105
|
-
// "skipDefaultLibCheck": true, /* Skip type checking .d.ts files that are included with TypeScript. */
|
|
106
|
-
"skipLibCheck": true /* Skip type checking all .d.ts files. */
|
|
107
|
-
},
|
|
108
|
-
"include": ["src"],
|
|
109
|
-
"exclude": ["node_modules", "dist"]
|
|
110
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
/* Visit https://aka.ms/tsconfig to read more about this file */
|
|
4
|
+
|
|
5
|
+
/* Projects */
|
|
6
|
+
// "incremental": true, /* Save .tsbuildinfo files to allow for incremental compilation of projects. */
|
|
7
|
+
// "composite": true, /* Enable constraints that allow a TypeScript project to be used with project references. */
|
|
8
|
+
// "tsBuildInfoFile": "./.tsbuildinfo", /* Specify the path to .tsbuildinfo incremental compilation file. */
|
|
9
|
+
// "disableSourceOfProjectReferenceRedirect": true, /* Disable preferring source files instead of declaration files when referencing composite projects. */
|
|
10
|
+
// "disableSolutionSearching": true, /* Opt a project out of multi-project reference checking when editing. */
|
|
11
|
+
// "disableReferencedProjectLoad": true, /* Reduce the number of projects loaded automatically by TypeScript. */
|
|
12
|
+
|
|
13
|
+
/* Language and Environment */
|
|
14
|
+
"target": "es2016" /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */,
|
|
15
|
+
// "lib": [], /* Specify a set of bundled library declaration files that describe the target runtime environment. */
|
|
16
|
+
// "jsx": "preserve", /* Specify what JSX code is generated. */
|
|
17
|
+
// "experimentalDecorators": true, /* Enable experimental support for legacy experimental decorators. */
|
|
18
|
+
// "emitDecoratorMetadata": true, /* Emit design-type metadata for decorated declarations in source files. */
|
|
19
|
+
// "jsxFactory": "", /* Specify the JSX factory function used when targeting React JSX emit, e.g. 'React.createElement' or 'h'. */
|
|
20
|
+
// "jsxFragmentFactory": "", /* Specify the JSX Fragment reference used for fragments when targeting React JSX emit e.g. 'React.Fragment' or 'Fragment'. */
|
|
21
|
+
// "jsxImportSource": "", /* Specify module specifier used to import the JSX factory functions when using 'jsx: react-jsx*'. */
|
|
22
|
+
// "reactNamespace": "", /* Specify the object invoked for 'createElement'. This only applies when targeting 'react' JSX emit. */
|
|
23
|
+
// "noLib": true, /* Disable including any library files, including the default lib.d.ts. */
|
|
24
|
+
// "useDefineForClassFields": true, /* Emit ECMAScript-standard-compliant class fields. */
|
|
25
|
+
// "moduleDetection": "auto", /* Control what method is used to detect module-format JS files. */
|
|
26
|
+
|
|
27
|
+
/* Modules */
|
|
28
|
+
"module": "commonjs" /* Specify what module code is generated. */,
|
|
29
|
+
// "rootDir": "./", /* Specify the root folder within your source files. */
|
|
30
|
+
// "moduleResolution": "node10", /* Specify how TypeScript looks up a file from a given module specifier. */
|
|
31
|
+
// "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */
|
|
32
|
+
// "paths": {}, /* Specify a set of entries that re-map imports to additional lookup locations. */
|
|
33
|
+
// "rootDirs": [], /* Allow multiple folders to be treated as one when resolving modules. */
|
|
34
|
+
// "typeRoots": [], /* Specify multiple folders that act like './node_modules/@types'. */
|
|
35
|
+
// "types": [], /* Specify type package names to be included without being referenced in a source file. */
|
|
36
|
+
// "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */
|
|
37
|
+
// "moduleSuffixes": [], /* List of file name suffixes to search when resolving a module. */
|
|
38
|
+
// "allowImportingTsExtensions": true, /* Allow imports to include TypeScript file extensions. Requires '--moduleResolution bundler' and either '--noEmit' or '--emitDeclarationOnly' to be set. */
|
|
39
|
+
// "resolvePackageJsonExports": true, /* Use the package.json 'exports' field when resolving package imports. */
|
|
40
|
+
// "resolvePackageJsonImports": true, /* Use the package.json 'imports' field when resolving imports. */
|
|
41
|
+
// "customConditions": [], /* Conditions to set in addition to the resolver-specific defaults when resolving imports. */
|
|
42
|
+
// "resolveJsonModule": true, /* Enable importing .json files. */
|
|
43
|
+
// "allowArbitraryExtensions": true, /* Enable importing files with any extension, provided a declaration file is present. */
|
|
44
|
+
// "noResolve": true, /* Disallow 'import's, 'require's or '<reference>'s from expanding the number of files TypeScript should add to a project. */
|
|
45
|
+
|
|
46
|
+
/* JavaScript Support */
|
|
47
|
+
// "allowJs": true, /* Allow JavaScript files to be a part of your program. Use the 'checkJS' option to get errors from these files. */
|
|
48
|
+
// "checkJs": true, /* Enable error reporting in type-checked JavaScript files. */
|
|
49
|
+
// "maxNodeModuleJsDepth": 1, /* Specify the maximum folder depth used for checking JavaScript files from 'node_modules'. Only applicable with 'allowJs'. */
|
|
50
|
+
|
|
51
|
+
/* Emit */
|
|
52
|
+
"declaration": true /* Generate .d.ts files from TypeScript and JavaScript files in your project. */,
|
|
53
|
+
// "declarationMap": true, /* Create sourcemaps for d.ts files. */
|
|
54
|
+
// "emitDeclarationOnly": true, /* Only output d.ts files and not JavaScript files. */
|
|
55
|
+
// "sourceMap": true, /* Create source map files for emitted JavaScript files. */
|
|
56
|
+
// "inlineSourceMap": true, /* Include sourcemap files inside the emitted JavaScript. */
|
|
57
|
+
// "outFile": "./", /* Specify a file that bundles all outputs into one JavaScript file. If 'declaration' is true, also designates a file that bundles all .d.ts output. */
|
|
58
|
+
"outDir": "./dist" /* Specify an output folder for all emitted files. */,
|
|
59
|
+
// "removeComments": true, /* Disable emitting comments. */
|
|
60
|
+
// "noEmit": true, /* Disable emitting files from a compilation. */
|
|
61
|
+
// "importHelpers": true, /* Allow importing helper functions from tslib once per project, instead of including them per-file. */
|
|
62
|
+
// "downlevelIteration": true, /* Emit more compliant, but verbose and less performant JavaScript for iteration. */
|
|
63
|
+
// "sourceRoot": "", /* Specify the root path for debuggers to find the reference source code. */
|
|
64
|
+
// "mapRoot": "", /* Specify the location where debugger should locate map files instead of generated locations. */
|
|
65
|
+
// "inlineSources": true, /* Include source code in the sourcemaps inside the emitted JavaScript. */
|
|
66
|
+
// "emitBOM": true, /* Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files. */
|
|
67
|
+
// "newLine": "crlf", /* Set the newline character for emitting files. */
|
|
68
|
+
// "stripInternal": true, /* Disable emitting declarations that have '@internal' in their JSDoc comments. */
|
|
69
|
+
// "noEmitHelpers": true, /* Disable generating custom helper functions like '__extends' in compiled output. */
|
|
70
|
+
// "noEmitOnError": true, /* Disable emitting files if any type checking errors are reported. */
|
|
71
|
+
// "preserveConstEnums": true, /* Disable erasing 'const enum' declarations in generated code. */
|
|
72
|
+
// "declarationDir": "./", /* Specify the output directory for generated declaration files. */
|
|
73
|
+
|
|
74
|
+
/* Interop Constraints */
|
|
75
|
+
// "isolatedModules": true, /* Ensure that each file can be safely transpiled without relying on other imports. */
|
|
76
|
+
// "verbatimModuleSyntax": true, /* Do not transform or elide any imports or exports not marked as type-only, ensuring they are written in the output file's format based on the 'module' setting. */
|
|
77
|
+
// "isolatedDeclarations": true, /* Require sufficient annotation on exports so other tools can trivially generate declaration files. */
|
|
78
|
+
// "allowSyntheticDefaultImports": true, /* Allow 'import x from y' when a module doesn't have a default export. */
|
|
79
|
+
"esModuleInterop": true /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility. */,
|
|
80
|
+
// "preserveSymlinks": true, /* Disable resolving symlinks to their realpath. This correlates to the same flag in node. */
|
|
81
|
+
"forceConsistentCasingInFileNames": true /* Ensure that casing is correct in imports. */,
|
|
82
|
+
|
|
83
|
+
/* Type Checking */
|
|
84
|
+
"strict": true /* Enable all strict type-checking options. */,
|
|
85
|
+
// "noImplicitAny": true, /* Enable error reporting for expressions and declarations with an implied 'any' type. */
|
|
86
|
+
// "strictNullChecks": true, /* When type checking, take into account 'null' and 'undefined'. */
|
|
87
|
+
// "strictFunctionTypes": true, /* When assigning functions, check to ensure parameters and the return values are subtype-compatible. */
|
|
88
|
+
// "strictBindCallApply": true, /* Check that the arguments for 'bind', 'call', and 'apply' methods match the original function. */
|
|
89
|
+
// "strictPropertyInitialization": true, /* Check for class properties that are declared but not set in the constructor. */
|
|
90
|
+
// "noImplicitThis": true, /* Enable error reporting when 'this' is given the type 'any'. */
|
|
91
|
+
// "useUnknownInCatchVariables": true, /* Default catch clause variables as 'unknown' instead of 'any'. */
|
|
92
|
+
// "alwaysStrict": true, /* Ensure 'use strict' is always emitted. */
|
|
93
|
+
// "noUnusedLocals": true, /* Enable error reporting when local variables aren't read. */
|
|
94
|
+
// "noUnusedParameters": true, /* Raise an error when a function parameter isn't read. */
|
|
95
|
+
// "exactOptionalPropertyTypes": true, /* Interpret optional property types as written, rather than adding 'undefined'. */
|
|
96
|
+
// "noImplicitReturns": true, /* Enable error reporting for codepaths that do not explicitly return in a function. */
|
|
97
|
+
// "noFallthroughCasesInSwitch": true, /* Enable error reporting for fallthrough cases in switch statements. */
|
|
98
|
+
// "noUncheckedIndexedAccess": true, /* Add 'undefined' to a type when accessed using an index. */
|
|
99
|
+
// "noImplicitOverride": true, /* Ensure overriding members in derived classes are marked with an override modifier. */
|
|
100
|
+
// "noPropertyAccessFromIndexSignature": true, /* Enforces using indexed accessors for keys declared using an indexed type. */
|
|
101
|
+
// "allowUnusedLabels": true, /* Disable error reporting for unused labels. */
|
|
102
|
+
// "allowUnreachableCode": true, /* Disable error reporting for unreachable code. */
|
|
103
|
+
|
|
104
|
+
/* Completeness */
|
|
105
|
+
// "skipDefaultLibCheck": true, /* Skip type checking .d.ts files that are included with TypeScript. */
|
|
106
|
+
"skipLibCheck": true /* Skip type checking all .d.ts files. */
|
|
107
|
+
},
|
|
108
|
+
"include": ["src"],
|
|
109
|
+
"exclude": ["node_modules", "dist"]
|
|
110
|
+
}
|