@sprucelabs/spruce-templates 18.1.5 → 18.1.6
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/build/index.d.ts
CHANGED
|
@@ -113,7 +113,7 @@ export declare const templates: {
|
|
|
113
113
|
theme(): string;
|
|
114
114
|
logTransport(): string;
|
|
115
115
|
};
|
|
116
|
-
export
|
|
116
|
+
export type Templates = typeof templates;
|
|
117
117
|
export { default as importExtractorUtil } from './utilities/importExtractor.utility';
|
|
118
118
|
export default handlebars;
|
|
119
119
|
export * from './types/templates.types';
|
|
@@ -12,7 +12,7 @@ import * as {{importAs}} from '{{package}}'
|
|
|
12
12
|
const schemaTemplateItems = {{{json schemaTemplateItems}}}
|
|
13
13
|
// @ts-ignore
|
|
14
14
|
const generateTypeLiteral = (definition: FieldDefinitions, renderAs: TemplateRenderAs, importAs: string) => {
|
|
15
|
-
const options:
|
|
15
|
+
const options: FieldTemplateDetailOptions<FieldDefinitions> = {
|
|
16
16
|
language: 'ts',
|
|
17
17
|
// @ts-ignore
|
|
18
18
|
templateItems: schemaTemplateItems,
|
|
@@ -24,7 +24,7 @@ const generateTypeLiteral = (definition: FieldDefinitions, renderAs: TemplateRen
|
|
|
24
24
|
|
|
25
25
|
const FieldClass = fieldClassMap[definition.type]
|
|
26
26
|
const details = FieldClass.generateTemplateDetails(
|
|
27
|
-
options as
|
|
27
|
+
options as any
|
|
28
28
|
)
|
|
29
29
|
|
|
30
30
|
return details.valueType
|
|
@@ -118,6 +118,6 @@ export interface ViewsOptions {
|
|
|
118
118
|
svcTemplateItems: VcTemplateItem[];
|
|
119
119
|
vcTemplateItems: VcTemplateItem[];
|
|
120
120
|
}
|
|
121
|
-
export
|
|
121
|
+
export type ListenerTemplateItem = Omit<EventFeatureListener, 'callback'> & {
|
|
122
122
|
path: string;
|
|
123
123
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DirectoryTemplateCode, DirectoryTemplateContextMap, DirectoryTemplateFile } from '../types/templates.types';
|
|
2
|
-
|
|
2
|
+
type DirectoryTemplateWithContent = DirectoryTemplateFile & {
|
|
3
3
|
contents: string;
|
|
4
4
|
};
|
|
5
5
|
export default class DirectoryTemplateUtility {
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "18.1.
|
|
6
|
+
"version": "18.1.6",
|
|
7
7
|
"files": [
|
|
8
8
|
"build/**/*",
|
|
9
9
|
"tsconfig.json",
|
|
@@ -81,5 +81,5 @@
|
|
|
81
81
|
"globby"
|
|
82
82
|
]
|
|
83
83
|
},
|
|
84
|
-
"gitHead": "
|
|
84
|
+
"gitHead": "29344d4c0e5571279c2c87dc7c036a2d7dec5a97"
|
|
85
85
|
}
|