Lines Matching refs:isPromise
50 bool isPromise = false;
51 …// Check whether the given parameter is a Promise object and save the result in the isPromise vari…
52 status = napi_is_promise(env, argv[0], &isPromise);
58 // Convert the value of isPromise to the type specified by napi_value, and return it.
59 napi_get_boolean(env, isPromise, &result);
68 export const isPromise: <T>(value: T) => boolean;
79 hilog.info(0x0000, 'Node-API', 'napi_is_promise %{public}s', testNapi.isPromise(value));
80 hilog.info(0x0000, 'Node-API', 'napi_is_promise string %{public}s', testNapi.isPromise(''));
131 bool isPromise = false;
133 napi_is_promise(env, promise, &isPromise);
135 napi_get_boolean(env, isPromise, &returnIsPromise);