Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit fccc0d8

Browse filesBrowse files
committed
fix: improve types import for cli-created demo
1 parent 41912fe commit fccc0d8
Copy full SHA for fccc0d8

File tree

Expand file treeCollapse file tree

2 files changed

+4
-5
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+4
-5
lines changed

‎adminforth/commands/createApp/templates/adminuser.ts.hbs

Copy file name to clipboardExpand all lines: adminforth/commands/createApp/templates/adminuser.ts.hbs
+2-3Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
import AdminForth, { AdminForthDataTypes, AdminForthResourceInput, AdminForthResource, AdminUser } from 'adminforth';
2-
3-
import type { AdminUser } from 'adminforth';
1+
import AdminForth, { AdminForthDataTypes } from 'adminforth';
2+
import type { AdminForthResourceInput, AdminForthResource, AdminUser } from 'adminforth';
43

54
async function canModifyUsers({ adminUser }: { adminUser: AdminUser }): Promise<boolean> {
65
return adminUser.dbUser.role === 'superadmin';

‎adminforth/commands/createApp/templates/index.ts.hbs

Copy file name to clipboardExpand all lines: adminforth/commands/createApp/templates/index.ts.hbs
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import express from 'express';
2-
import AdminForth, { Filters } from 'adminforth';
3-
import usersResource from "./resources/adminuser";
2+
import AdminForth from 'adminforth';
3+
import usersResource from "./resources/adminuser.js";
44

55
const ADMIN_BASE_URL = '';
66

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.