Skip to content

Commit

Permalink
Merge c9b41d3 into 24d46d9
Browse files Browse the repository at this point in the history
  • Loading branch information
mbland committed Jan 18, 2024
2 parents 24d46d9 + c9b41d3 commit a8dcdf3
Show file tree
Hide file tree
Showing 3 changed files with 81 additions and 78 deletions.
9 changes: 6 additions & 3 deletions lib/template.d.ts
Expand Up @@ -4,11 +4,14 @@
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
*/

declare module "*.hbs" {
export const RawTemplate: Handlebars.TemplateDelegate
declare namespace HandlebarsPrecompiler {
export interface TemplateRenderer {
(context: any, options?: Handlebars.RuntimeOptions): DocumentFragment
}
const Template: TemplateRenderer
}

declare module "*.hbs" {
export const RawTemplate: Handlebars.TemplateDelegate
const Template: HandlebarsPrecompiler.TemplateRenderer
export default Template
}
14 changes: 7 additions & 7 deletions package.json
@@ -1,6 +1,6 @@
{
"name": "rollup-plugin-handlebars-precompiler",
"version": "1.0.1",
"version": "1.0.2",
"description": "Rollup plugin to precompile Handlebars templates into JavaScript modules",
"main": "index.js",
"types": "types/index.d.ts",
Expand Down Expand Up @@ -31,11 +31,11 @@
"repository": "https://github.com/mbland/rollup-plugin-handlebars-precompiler",
"bugs": "https://github.com/mbland/rollup-plugin-handlebars-precompiler/issues",
"devDependencies": {
"@stylistic/eslint-plugin-js": "^1.5.3",
"@types/node": "^20.11.4",
"@vitest/coverage-istanbul": "^1.2.0",
"@vitest/coverage-v8": "^1.2.0",
"@vitest/ui": "^1.2.0",
"@stylistic/eslint-plugin-js": "^1.5.4",
"@types/node": "^20.11.5",
"@vitest/coverage-istanbul": "^1.2.1",
"@vitest/coverage-v8": "^1.2.1",
"@vitest/ui": "^1.2.1",
"eslint": "^8.56.0",
"eslint-plugin-jsdoc": "^46.10.1",
"eslint-plugin-vitest": "^0.3.20",
Expand All @@ -47,7 +47,7 @@
"rollup": "^4.9.5",
"test-page-opener": "^1.0.6",
"typescript": "^5.3.3",
"vitest": "^1.2.0"
"vitest": "^1.2.1"
},
"dependencies": {
"@rollup/pluginutils": "^5.1.0",
Expand Down
136 changes: 68 additions & 68 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit a8dcdf3

Please sign in to comment.