@stencil/core 2.17.4 → 2.18.1

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.
Files changed (88) hide show
  1. package/cli/index.cjs +285 -220
  2. package/cli/index.d.ts +1 -0
  3. package/cli/index.js +285 -220
  4. package/cli/package.json +1 -1
  5. package/compiler/lib.dom.d.ts +620 -89
  6. package/compiler/lib.dom.iterable.d.ts +27 -3
  7. package/compiler/lib.es2015.core.d.ts +3 -3
  8. package/compiler/lib.es2015.iterable.d.ts +2 -1
  9. package/compiler/lib.es2015.reflect.d.ts +1 -1
  10. package/compiler/lib.es2020.bigint.d.ts +7 -5
  11. package/compiler/lib.es2020.d.ts +2 -0
  12. package/compiler/lib.es2020.date.d.ts +44 -0
  13. package/compiler/lib.es2020.intl.d.ts +51 -11
  14. package/compiler/lib.es2020.number.d.ts +30 -0
  15. package/compiler/lib.es2021.intl.d.ts +106 -4
  16. package/compiler/lib.es2022.array.d.ts +123 -0
  17. package/compiler/lib.es2022.d.ts +26 -0
  18. package/compiler/lib.es2022.error.d.ts +75 -0
  19. package/compiler/lib.es2022.full.d.ts +25 -0
  20. package/compiler/lib.es2022.intl.d.ts +111 -0
  21. package/compiler/lib.es2022.object.d.ts +28 -0
  22. package/compiler/lib.es2022.string.d.ts +27 -0
  23. package/compiler/lib.es5.d.ts +25 -19
  24. package/compiler/lib.esnext.d.ts +1 -1
  25. package/compiler/lib.esnext.intl.d.ts +4 -1
  26. package/compiler/lib.webworker.d.ts +236 -40
  27. package/compiler/lib.webworker.iterable.d.ts +10 -3
  28. package/compiler/package.json +1 -1
  29. package/compiler/stencil.d.ts +2 -2
  30. package/compiler/stencil.js +47263 -45624
  31. package/compiler/stencil.min.js +2 -2
  32. package/compiler/sys/in-memory-fs.d.ts +218 -0
  33. package/dependencies.json +10 -1
  34. package/dev-server/client/index.d.ts +2 -2
  35. package/dev-server/client/index.js +241 -241
  36. package/dev-server/client/package.json +1 -1
  37. package/dev-server/connector.html +3 -3
  38. package/dev-server/index.d.ts +1 -1
  39. package/dev-server/index.js +2 -2
  40. package/dev-server/package.json +1 -1
  41. package/dev-server/server-process.js +1198 -1167
  42. package/internal/app-data/package.json +1 -1
  43. package/internal/client/css-shim.js +2 -2
  44. package/internal/client/dom.js +1 -1
  45. package/internal/client/index.js +1022 -824
  46. package/internal/client/package.json +1 -1
  47. package/internal/client/patch-browser.js +1 -1
  48. package/internal/client/patch-esm.js +1 -1
  49. package/internal/client/polyfills/css-shim.js +1 -1
  50. package/internal/client/shadow-css.js +1 -1
  51. package/internal/hydrate/index.js +119 -119
  52. package/internal/hydrate/package.json +1 -1
  53. package/internal/hydrate/runner.d.ts +1 -1
  54. package/internal/hydrate/runner.js +100 -100
  55. package/internal/package.json +1 -1
  56. package/internal/stencil-core/index.d.ts +8 -10
  57. package/internal/stencil-private.d.ts +77 -138
  58. package/internal/stencil-public-compiler.d.ts +44 -10
  59. package/internal/stencil-public-runtime.d.ts +15 -4
  60. package/internal/testing/index.js +148 -148
  61. package/internal/testing/package.json +1 -1
  62. package/mock-doc/index.cjs +534 -518
  63. package/mock-doc/index.d.ts +13 -12
  64. package/mock-doc/index.js +534 -518
  65. package/mock-doc/package.json +1 -1
  66. package/package.json +23 -32
  67. package/readme.md +27 -33
  68. package/screenshot/index.d.ts +1 -1
  69. package/screenshot/index.js +13 -13
  70. package/screenshot/package.json +1 -1
  71. package/screenshot/pixel-match.js +983 -849
  72. package/sys/node/glob.js +1 -1
  73. package/sys/node/index.d.ts +2 -0
  74. package/sys/node/index.js +374 -373
  75. package/sys/node/package.json +1 -1
  76. package/sys/node/worker.js +1 -1
  77. package/testing/index.d.ts +6 -6
  78. package/testing/index.js +427 -441
  79. package/testing/jest/jest-config.d.ts +1 -1
  80. package/testing/matchers/index.d.ts +3 -3
  81. package/testing/mock-fetch.d.ts +1 -1
  82. package/testing/mocks.d.ts +2 -2
  83. package/testing/package.json +1 -1
  84. package/testing/puppeteer/puppeteer-element.d.ts +2 -2
  85. package/testing/puppeteer/puppeteer-events.d.ts +1 -1
  86. package/testing/testing-logger.d.ts +1 -1
  87. package/testing/testing-utils.d.ts +5 -4
  88. package/testing/testing.d.ts +1 -1
@@ -1,9 +1,10 @@
1
+ export type { StencilConfig as Config, PrerenderConfig } from '../stencil-public-compiler';
1
2
  export type {
2
3
  ChildNode,
3
- ComponentOptions,
4
4
  ComponentDidLoad,
5
5
  ComponentDidUpdate,
6
6
  ComponentInterface,
7
+ ComponentOptions,
7
8
  ComponentWillLoad,
8
9
  ComponentWillUpdate,
9
10
  EventEmitter,
@@ -11,42 +12,39 @@ export type {
11
12
  FunctionalComponent,
12
13
  FunctionalUtilities,
13
14
  JSX,
14
- MethodOptions,
15
- ModeStyles,
16
15
  ListenOptions,
17
16
  ListenTargetOptions,
17
+ MethodOptions,
18
+ ModeStyles,
18
19
  PropOptions,
19
20
  QueueApi,
20
21
  RafCallback,
21
22
  VNode,
22
23
  VNodeData,
23
24
  } from '../stencil-public-runtime';
24
-
25
25
  export {
26
26
  Build,
27
27
  Component,
28
28
  Element,
29
+ Env,
29
30
  Event,
31
+ forceUpdate,
32
+ Fragment,
30
33
  getAssetPath,
31
34
  getElement,
32
35
  getMode,
33
36
  getRenderingRef,
34
- Fragment,
35
- forceUpdate,
36
37
  h,
37
38
  Host,
38
- Env,
39
39
  Listen,
40
40
  Method,
41
41
  Prop,
42
42
  readTask,
43
43
  setAssetPath,
44
+ setErrorHandler,
44
45
  setMode,
45
46
  setPlatformHelpers,
46
47
  State,
47
48
  Watch,
48
49
  writeTask,
49
- setErrorHandler,
50
50
  } from '../stencil-public-runtime';
51
-
52
- export type { StencilConfig as Config, PrerenderConfig } from '../stencil-public-compiler';
@@ -1,5 +1,5 @@
1
- import { BuildResultsComponentGraph } from '.';
2
- import type { BuildEvents, BuildLog, BuildOutput, CompilerBuildResults, CompilerBuildStart, CompilerFsStats, CompilerRequestResponse, CompilerSystem, Config, CopyResults, DevServerConfig, DevServerEditor, Diagnostic, FsWriteOptions, Logger, LoggerTimeSpan, OptimizeCssInput, OptimizeCssOutput, OutputTargetWww, PageReloadStrategy, PrerenderConfig, StyleDoc, LoggerLineUpdater, TaskCommand } from './stencil-public-compiler';
1
+ import type { InMemoryFileSystem } from '../compiler/sys/in-memory-fs';
2
+ import type { BuildEvents, BuildLog, BuildResultsComponentGraph, CompilerBuildResults, CompilerBuildStart, CompilerFsStats, CompilerRequestResponse, CompilerSystem, Config, CopyResults, DevServerConfig, DevServerEditor, Diagnostic, Logger, LoggerLineUpdater, LoggerTimeSpan, OptimizeCssInput, OptimizeCssOutput, OutputTargetWww, PageReloadStrategy, PrerenderConfig, StyleDoc, TaskCommand } from './stencil-public-compiler';
3
3
  import type { ComponentInterface, ListenOptions, ListenTargetOptions, VNode, VNodeData } from './stencil-public-runtime';
4
4
  export interface SourceMap {
5
5
  file: string;
@@ -823,6 +823,10 @@ export interface ComponentConstructor {
823
823
  isProxied?: boolean;
824
824
  isStyleRegistered?: boolean;
825
825
  }
826
+ /**
827
+ * A mapping from class member names to a list of methods which are watching
828
+ * them.
829
+ */
826
830
  export interface ComponentConstructorWatchers {
827
831
  [propName: string]: string[];
828
832
  }
@@ -832,9 +836,9 @@ export interface ComponentTestingConstructor extends ComponentConstructor {
832
836
  componentWillLoad?: Function;
833
837
  componentWillUpdate?: Function;
834
838
  componentWillRender?: Function;
835
- __componentWillLoad?: Function;
836
- __componentWillUpdate?: Function;
837
- __componentWillRender?: Function;
839
+ __componentWillLoad?: Function | null;
840
+ __componentWillUpdate?: Function | null;
841
+ __componentWillRender?: Function | null;
838
842
  };
839
843
  }
840
844
  export interface ComponentNativeConstructor extends ComponentConstructor {
@@ -1016,51 +1020,6 @@ export interface EventEmitterData<T = any> {
1016
1020
  cancelable?: boolean;
1017
1021
  composed?: boolean;
1018
1022
  }
1019
- export interface FsReadOptions {
1020
- useCache?: boolean;
1021
- setHash?: boolean;
1022
- }
1023
- export interface FsReaddirOptions {
1024
- inMemoryOnly?: boolean;
1025
- recursive?: boolean;
1026
- /**
1027
- * Directory names to exclude. Just the basename,
1028
- * not the entire path. Basically for "node_moduels".
1029
- */
1030
- excludeDirNames?: string[];
1031
- /**
1032
- * Extensions we know we can avoid. Each extension
1033
- * should include the `.` so that we can test for both
1034
- * `.d.ts.` and `.ts`. If `excludeExtensions` isn't provided it
1035
- * doesn't try to exclude anything. This only checks against
1036
- * the filename, not directory names when recursive.
1037
- */
1038
- excludeExtensions?: string[];
1039
- }
1040
- export interface FsReaddirItem {
1041
- absPath: string;
1042
- relPath: string;
1043
- isDirectory: boolean;
1044
- isFile: boolean;
1045
- }
1046
- export interface FsWriteResults {
1047
- changedContent: boolean;
1048
- queuedWrite: boolean;
1049
- ignored: boolean;
1050
- }
1051
- export declare type FsItems = Map<string, FsItem>;
1052
- export interface FsItem {
1053
- fileText: string;
1054
- isFile: boolean;
1055
- isDirectory: boolean;
1056
- size: number;
1057
- mtimeMs: number;
1058
- exists: boolean;
1059
- queueCopyFileToDest: string;
1060
- queueWriteToDisk: boolean;
1061
- queueDeleteFromDisk?: boolean;
1062
- useCache: boolean;
1063
- }
1064
1023
  export interface HostElement extends HTMLElement {
1065
1024
  connectedCallback?: () => void;
1066
1025
  attributeChangedCallback?: (attribName: string, oldVal: string, newVal: string, namespace: string) => void;
@@ -1104,66 +1063,6 @@ export interface HostElement extends HTMLElement {
1104
1063
  ['s-p']?: Promise<void>[];
1105
1064
  componentOnReady?: () => Promise<this>;
1106
1065
  }
1107
- export interface InMemoryFileSystem {
1108
- sys?: CompilerSystem;
1109
- accessData(filePath: string): Promise<{
1110
- exists: boolean;
1111
- isDirectory: boolean;
1112
- isFile: boolean;
1113
- }>;
1114
- access(filePath: string): Promise<boolean>;
1115
- /**
1116
- * Synchronous!!! Do not use!!!
1117
- * (Only typescript transpiling is allowed to use)
1118
- * @param filePath
1119
- */
1120
- accessSync(filePath: string): boolean;
1121
- copyFile(srcFile: string, dest: string): Promise<void>;
1122
- emptyDirs(dirPaths: string[]): Promise<void>;
1123
- readdir(dirPath: string, opts?: FsReaddirOptions): Promise<FsReaddirItem[]>;
1124
- readFile(filePath: string, opts?: FsReadOptions): Promise<string>;
1125
- /**
1126
- * Synchronous!!! Do not use!!!
1127
- * (Only typescript transpiling is allowed to use)
1128
- * @param filePath
1129
- */
1130
- readFileSync(filePath: string, opts?: FsReadOptions): string;
1131
- remove(itemPath: string): Promise<void>;
1132
- stat(itemPath: string): Promise<{
1133
- isFile: boolean;
1134
- isDirectory: boolean;
1135
- }>;
1136
- /**
1137
- * Synchronous!!! Do not use!!!
1138
- * (Only typescript transpiling is allowed to use)
1139
- * @param itemPath
1140
- */
1141
- statSync(itemPath: string): {
1142
- exists: boolean;
1143
- isFile: boolean;
1144
- isDirectory: boolean;
1145
- };
1146
- writeFile(filePath: string, content: string, opts?: FsWriteOptions): Promise<FsWriteResults>;
1147
- writeFiles(files: {
1148
- [filePath: string]: string;
1149
- } | Map<string, String>, opts?: FsWriteOptions): Promise<FsWriteResults[]>;
1150
- commit(): Promise<{
1151
- filesWritten: string[];
1152
- filesDeleted: string[];
1153
- filesCopied: string[][];
1154
- dirsDeleted: string[];
1155
- dirsAdded: string[];
1156
- }>;
1157
- cancelDeleteFilesFromDisk(filePaths: string[]): void;
1158
- cancelDeleteDirectoriesFromDisk(filePaths: string[]): void;
1159
- clearDirCache(dirPath: string): void;
1160
- clearFileCache(filePath: string): void;
1161
- getItem(itemPath: string): FsItem;
1162
- getBuildOutputs(): BuildOutput[];
1163
- clearCache(): void;
1164
- keys(): string[];
1165
- getMemoryStats(): string;
1166
- }
1167
1066
  export interface HydrateResults {
1168
1067
  buildId: string;
1169
1068
  diagnostics: Diagnostic[];
@@ -1424,42 +1323,82 @@ export declare type ComponentRuntimeMetaCompact = [
1424
1323
  /** listeners */
1425
1324
  ComponentRuntimeHostListener[]?
1426
1325
  ];
1326
+ /**
1327
+ * Runtime metadata for a Stencil component
1328
+ */
1427
1329
  export interface ComponentRuntimeMeta {
1330
+ /**
1331
+ * This number is used to hold a series of bitflags for various features we
1332
+ * support on components. The flags which this value is intended to store are
1333
+ * documented in the {@link CMP_FLAGS} enum.
1334
+ */
1428
1335
  $flags$: number;
1336
+ /**
1337
+ * Just what it says on the tin - the tag name for the component, as set in
1338
+ * the `@Component` decorator.
1339
+ */
1429
1340
  $tagName$: string;
1430
- $members$?: ComponentRuntimeMembers;
1431
- $listeners$?: ComponentRuntimeHostListener[];
1432
- $attrsToReflect$?: [string, string][];
1433
- $watchers$?: ComponentConstructorWatchers;
1434
- $lazyBundleId$?: string;
1435
- }
1436
- export interface ComponentRuntimeMembers {
1437
- [memberName: string]: ComponentRuntimeMember;
1438
- }
1439
- export declare type ComponentRuntimeMember = [
1440
1341
  /**
1441
- * flags data
1342
+ * A map of the component's members, which could include fields decorated
1343
+ * with `@Prop`, `@State`, etc as well as methods.
1442
1344
  */
1443
- number,
1345
+ $members$?: ComponentRuntimeMembers;
1444
1346
  /**
1445
- * attribute name to observe
1347
+ * Information about listeners on the component.
1446
1348
  */
1447
- string?
1448
- ];
1449
- export declare type ComponentRuntimeHostListener = [
1349
+ $listeners$?: ComponentRuntimeHostListener[];
1450
1350
  /**
1451
- * event flags
1351
+ * Tuples containing information about `@Prop` fields on the component which
1352
+ * are set to be reflected (i.e. kept in sync) as HTML attributes when
1353
+ * updated.
1452
1354
  */
1453
- number,
1355
+ $attrsToReflect$?: ComponentRuntimeReflectingAttr[];
1454
1356
  /**
1455
- * event name,
1357
+ * Information about which class members have watchers attached on the component.
1456
1358
  */
1457
- string,
1359
+ $watchers$?: ComponentConstructorWatchers;
1458
1360
  /**
1459
- * event method,
1361
+ * A bundle ID used for lazy loading.
1460
1362
  */
1461
- string
1462
- ];
1363
+ $lazyBundleId$?: string;
1364
+ }
1365
+ /**
1366
+ * A mapping of the names of members on the component to some runtime-specific
1367
+ * information about them.
1368
+ */
1369
+ export interface ComponentRuntimeMembers {
1370
+ [memberName: string]: ComponentRuntimeMember;
1371
+ }
1372
+ /**
1373
+ * A tuple with information about a class member that's relevant at runtime.
1374
+ * The fields are:
1375
+ *
1376
+ * 1. A number used to hold bitflags for component members. The bit flags which
1377
+ * this is intended to store are documented in the {@link MEMBER_FLAGS} enum.
1378
+ * 2. The attribute name to observe.
1379
+ */
1380
+ export declare type ComponentRuntimeMember = [number, string?];
1381
+ /**
1382
+ * A tuple holding information about a host listener which is relevant at
1383
+ * runtime. The field are:
1384
+ *
1385
+ * 1. A number used to hold bitflags for listeners. The bit flags which this is
1386
+ * intended to store are documented in the {@link LISTENER_FLAGS} enum.
1387
+ * 2. The event name.
1388
+ * 3. The method name.
1389
+ */
1390
+ export declare type ComponentRuntimeHostListener = [number, string, string];
1391
+ /**
1392
+ * A tuple containing information about props which are "reflected" at runtime,
1393
+ * meaning that HTML attributes on the component instance are kept in sync with
1394
+ * the prop value.
1395
+ *
1396
+ * The fields are:
1397
+ *
1398
+ * 1. the prop name
1399
+ * 2. the prop attribute.
1400
+ */
1401
+ export declare type ComponentRuntimeReflectingAttr = [string, string | undefined];
1463
1402
  export declare type ModeBundleId = ModeBundleIds | string;
1464
1403
  export interface ModeBundleIds {
1465
1404
  [modeName: string]: string;
@@ -2271,13 +2210,13 @@ export interface TrackableData {
2271
2210
  component_count?: number;
2272
2211
  arguments: string[];
2273
2212
  targets: string[];
2274
- task: TaskCommand;
2275
- duration_ms: number;
2213
+ task: TaskCommand | null;
2214
+ duration_ms: number | undefined;
2276
2215
  packages: string[];
2277
2216
  packages_no_versions?: string[];
2278
- os_name: string;
2279
- os_version: string;
2280
- cpu_model: string;
2217
+ os_name: string | undefined;
2218
+ os_version: string | undefined;
2219
+ cpu_model: string | undefined;
2281
2220
  typescript: string;
2282
2221
  rollup: string;
2283
2222
  system: string;
@@ -1,6 +1,6 @@
1
- import type { JsonDocs } from './stencil-public-docs';
2
- import type { PrerenderUrlResults } from '../internal';
3
1
  import type { ConfigFlags } from '../cli/config-flags';
2
+ import type { PrerenderUrlResults } from '../internal';
3
+ import type { JsonDocs } from './stencil-public-docs';
4
4
  export * from './stencil-public-docs';
5
5
  /**
6
6
  * https://stenciljs.com/docs/config/
@@ -372,7 +372,7 @@ declare type RequireFields<T, K extends keyof T> = T & {
372
372
  /**
373
373
  * Fields in {@link Config} to make required for {@link ValidatedConfig}
374
374
  */
375
- declare type StrictConfigFields = 'flags' | 'logger' | 'outputTargets' | 'sys' | 'testing';
375
+ declare type StrictConfigFields = 'flags' | 'logger' | 'outputTargets' | 'rootDir' | 'sys' | 'testing';
376
376
  /**
377
377
  * A version of {@link Config} that makes certain fields required. This type represents a valid configuration entity.
378
378
  * When a configuration is received by the user, it is a bag of unverified data. In order to make stricter guarantees
@@ -1698,6 +1698,27 @@ export interface OutputTargetDist extends OutputTargetBase {
1698
1698
  buildDir?: string;
1699
1699
  dir?: string;
1700
1700
  collectionDir?: string | null;
1701
+ /**
1702
+ * When `true` this flag will transform aliased import paths defined in
1703
+ * a project's `tsconfig.json` to relative import paths in the compiled output's
1704
+ * `dist-collection` bundle if it is generated (i.e. `collectionDir` is set).
1705
+ *
1706
+ * Paths will be left in aliased format if `false` or `undefined`.
1707
+ *
1708
+ * @example
1709
+ * // tsconfig.json
1710
+ * {
1711
+ * paths: {
1712
+ * "@utils/*": ['/src/utils/*']
1713
+ * }
1714
+ * }
1715
+ *
1716
+ * // Source file
1717
+ * import * as dateUtils from '@utils/date-utils';
1718
+ * // Output file
1719
+ * import * as dateUtils from '../utils/date-utils';
1720
+ */
1721
+ transformAliasedImportPathsInCollection?: boolean | null;
1701
1722
  typesDir?: string;
1702
1723
  esmLoaderPath?: string;
1703
1724
  copy?: CopyTask[];
@@ -1709,6 +1730,26 @@ export interface OutputTargetDistCollection extends OutputTargetBase {
1709
1730
  empty?: boolean;
1710
1731
  dir: string;
1711
1732
  collectionDir: string;
1733
+ /**
1734
+ * When `true` this flag will transform aliased import paths defined in
1735
+ * a project's `tsconfig.json` to relative import paths in the compiled output.
1736
+ *
1737
+ * Paths will be left in aliased format if `false` or `undefined`.
1738
+ *
1739
+ * @example
1740
+ * // tsconfig.json
1741
+ * {
1742
+ * paths: {
1743
+ * "@utils/*": ['/src/utils/*']
1744
+ * }
1745
+ * }
1746
+ *
1747
+ * // Source file
1748
+ * import * as dateUtils from '@utils/date-utils';
1749
+ * // Output file
1750
+ * import * as dateUtils from '../utils/date-utils';
1751
+ */
1752
+ transformAliasedImportPaths?: boolean | null;
1712
1753
  }
1713
1754
  export interface OutputTargetDistTypes extends OutputTargetBase {
1714
1755
  type: 'dist-types';
@@ -2134,13 +2175,6 @@ export interface FsStats {
2134
2175
  ctime: Date;
2135
2176
  birthtime: Date;
2136
2177
  }
2137
- export interface FsWriteOptions {
2138
- inMemoryOnly?: boolean;
2139
- clearFileCache?: boolean;
2140
- immediateWrite?: boolean;
2141
- useCache?: boolean;
2142
- outputTargetType?: string;
2143
- }
2144
2178
  export interface Compiler {
2145
2179
  build(): Promise<CompilerBuildResults>;
2146
2180
  createWatcher(): Promise<CompilerWatcher>;
@@ -221,7 +221,8 @@ export declare type ErrorHandler = (err: any, element?: HTMLElement) => void;
221
221
  */
222
222
  export declare const setMode: (handler: ResolutionHandler) => void;
223
223
  /**
224
- * getMode
224
+ * `getMode()` is used for libraries which provide multiple "modes" for styles.
225
+ * @param ref a reference to the node to get styles for
225
226
  */
226
227
  export declare function getMode<T = string | undefined>(ref: any): T;
227
228
  export declare function setPlatformHelpers(helpers: {
@@ -234,6 +235,8 @@ export declare function setPlatformHelpers(helpers: {
234
235
  /**
235
236
  * Get the base path to where the assets can be found. Use `setAssetPath(path)`
236
237
  * if the path needs to be customized.
238
+ * @param path the path to use in calculating the asset path. this value will be
239
+ * used in conjunction with the base asset path
237
240
  */
238
241
  export declare function getAssetPath(path: string): string;
239
242
  /**
@@ -246,18 +249,22 @@ export declare function getAssetPath(path: string): string;
246
249
  * `setAssetPath(document.currentScript.src)`, or using a bundler's replace plugin to
247
250
  * dynamically set the path at build time, such as `setAssetPath(process.env.ASSET_PATH)`.
248
251
  * But do note that this configuration depends on how your script is bundled, or lack of
249
- * bunding, and where your assets can be loaded from. Additionally custom bundling
252
+ * bundling, and where your assets can be loaded from. Additionally custom bundling
250
253
  * will have to ensure the static assets are copied to its build directory.
254
+ * @param path the asset path to set
251
255
  */
252
256
  export declare function setAssetPath(path: string): string;
253
257
  /**
254
- * getElement
258
+ * Retrieve a Stencil element for a given reference
259
+ * @param ref the ref to get the Stencil element for
255
260
  */
256
261
  export declare function getElement(ref: any): HTMLStencilElement;
257
262
  /**
258
263
  * Schedules a new render of the given instance or element even if no state changed.
259
264
  *
260
- * Notice `forceUpdate()` is not syncronous and might perform the DOM render in the next frame.
265
+ * Notice `forceUpdate()` is not synchronous and might perform the DOM render in the next frame.
266
+ *
267
+ * @param ref the node/element to force the re-render of
261
268
  */
262
269
  export declare function forceUpdate(ref: any): void;
263
270
  /**
@@ -272,6 +279,8 @@ export interface HTMLStencilElement extends HTMLElement {
272
279
  * in the best moment to perform DOM mutation without causing layout thrashing.
273
280
  *
274
281
  * For further information: https://developers.google.com/web/fundamentals/performance/rendering/avoid-large-complex-layouts-and-layout-thrashing
282
+ *
283
+ * @param task the DOM-write to schedule
275
284
  */
276
285
  export declare function writeTask(task: RafCallback): void;
277
286
  /**
@@ -279,6 +288,8 @@ export declare function writeTask(task: RafCallback): void;
279
288
  * in the best moment to perform DOM reads without causing layout thrashing.
280
289
  *
281
290
  * For further information: https://developers.google.com/web/fundamentals/performance/rendering/avoid-large-complex-layouts-and-layout-thrashing
291
+ *
292
+ * @param task the DOM-read to schedule
282
293
  */
283
294
  export declare function readTask(task: RafCallback): void;
284
295
  /**