This commit is contained in:
Xu Chang 2022-04-22 20:00:47 +08:00
parent 143482b46e
commit 0dfefb1bfa
7 changed files with 12 additions and 10 deletions

View File

@ -3,7 +3,7 @@ import { EntityDict } from 'oak-app-domain/EntityDict';
export declare function loginMp<ED extends EntityDict>(params: {
code: string;
}, context: RuntimeContext<ED>): Promise<string>;
export declare function loginByPassword(params: {
export declare function loginByPassword<ED extends EntityDict>(params: {
password: string;
mobile: string;
}, context: RuntimeContext<EntityDict>): Promise<string>;
}, context: RuntimeContext<ED>): Promise<string>;

1
lib/index.d.ts vendored
View File

@ -1,4 +1,3 @@
import './typings/polyfill';
import aspectDict from "./aspects";
import triggers from "./triggers";
import checkers from './checkers';

View File

@ -18,7 +18,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.aspectDict = exports.data = exports.triggers = exports.checkers = void 0;
require("./typings/polyfill");
// import './typings/polyfill';
const aspects_1 = __importDefault(require("./aspects"));
exports.aspectDict = aspects_1.default /* , { AspectDict } */;
const triggers_1 = __importDefault(require("./triggers"));

View File

@ -6,7 +6,7 @@ export async function loginMp<ED extends EntityDict>(params: { code: string }, c
throw new Error('method not implemented!');
}
export async function loginByPassword(params: { password: string, mobile: string }, context: RuntimeContext<EntityDict>): Promise<string> {
export async function loginByPassword<ED extends EntityDict>(params: { password: string, mobile: string }, context: RuntimeContext<ED>): Promise<string> {
const { rowStore } = context;
const { result: [mobile]} = await rowStore.select('mobile', {

View File

@ -1,4 +1,4 @@
import './typings/polyfill';
// import './typings/polyfill';
import aspectDict/* , { AspectDict } */ from "./aspects";
import triggers from "./triggers";
import checkers from './checkers';

View File

@ -19,7 +19,7 @@
// "sourceMap": true, /* Generates corresponding '.map' file. */
// "outFile": "./", /* Concatenate and emit output to single file. */
"outDir": "lib", /* Redirect output structure to the directory. */
// "rootDir": "src", /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */
"rootDir": "src", /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */
// "composite": true, /* Enable project compilation */
// "tsBuildInfoFile": "./", /* Specify file to store incremental compilation information */
// "removeComments": true, /* Do not emit comments to output. */
@ -70,10 +70,12 @@
"./node_modules/miniprogram-api-typings"
]
},
"include": [ "src/**/*.ts" ],
"include": [ "./**/*.ts" ],
"exclude": [
"node_modules",
"**/*.spec.ts",
"test"
"test",
"scripts",
"wechatMp"
]
}

View File

@ -6,6 +6,7 @@ OakPage({
id: 1,
name: 1,
phone: 1,
detail: 1,
area: {
id: 1,
name: 1,