Skip to content

Commit e85fb5b

Browse files
committed
chore: updated generics
Signed-off-by: Neko Ayaka <[email protected]>
1 parent e02d0b8 commit e85fb5b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"id": "obsidian-plugin-vue",
3-
"name": "Obsidian Vue Plugin",
3+
"name": "Vue",
44
"version": "0.1.0",
55
"minAppVersion": "1.4.0",
66
"description": "An Obsidian plugin that enables you to use Vue.js components in your notes.",

src/import.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ const importRegex = /\bimport\s*\(/g
4747
const importAsRegex = /(\w+)\s+as\s+(\w+)/g
4848

4949
// https://github.com/unocss/unocss/blob/main/packages/shared-docs/src/config.ts
50-
export async function evaluateAnyModule<T = any>(configCode: string): Promise<T | undefined> {
50+
export async function evaluateAnyModule<T>(configCode: string): Promise<T | undefined> {
5151
const transformedCode = configCode
5252
.replace(importUnocssRegex, 'const $1 = await __import("unocss");')
5353
.replace(importObjectRegex, (match, p1, p2, p3) => {

0 commit comments

Comments
 (0)