TypeScript type definitions for Yandex Cloud Function
npm install -D @yandex-cloud/function-types
import { addValue } from "./module2.js"; | |
export const foo = (name) => { | |
console.log(`${addValue(name)} in index.js`); | |
}; | |
window._my_foo = foo; |
/** | |
* Создание внутренних заказов для пополнения остатков магазинов по проданным | |
* за последние 7 дней товарам | |
*/ | |
(async () => { | |
// Функция для отображения ошибки | |
const error = (msg) => { | |
alert(msg); | |
throw new Error(msg); |
// https://gist.githubusercontent.com/wmakeev/09aad933ef9bcb1a8804e3449ec5ff74 | |
import { env } from "../env.js"; | |
/** | |
* Возвращает остатки МойСклад | |
* | |
* @param {import('moysklad').Instance} ms | |
*/ | |
export async function getMoyskladStock(ms) { |
type GetMoyskladAttr = < | |
T extends import("moysklad-api-model").Attribute["type"] | |
>( | |
entity: { attributes?: import("moysklad-api-model").Attribute[] }, | |
type: T, | |
id: string | |
) => Extract<import("moysklad-api-model").Attribute, { type: T }> | null; |
/** | |
* Возвращает товары способом обычного листания | |
* | |
* @param {import('moysklad').Instance} ms | |
* @param {string} path | |
* @param {import('moysklad').Query} query | |
*/ | |
export async function* getDocumentsStream(ms, path, query) { | |
/** @type {string | undefined} */ | |
let nextHref = ms.buildUrl(path, query) |
{ | |
"name": "example", | |
"version": "1.0.0", | |
"type": "module", | |
"description": "", | |
"exports": "./src/index.js", | |
"scripts": { | |
"test": "echo \"Error: no test specified\" && exit 1" | |
}, | |
"engines": { |
TypeScript type definitions for Yandex Cloud Function
npm install -D @yandex-cloud/function-types
/* | |
# CHANGELOG: | |
- 2022-06-02 initial | |
*/ | |
import type { fetch, FetchOptions } from "../tools/fetch-adapter"; | |
export interface OzonOptions { | |
clientId: string; |
echo "options hid_apple fnmode=2" | sudo tee /etc/modprobe.d/hid_apple.conf
System settings > Layouts > Options
sudo ./install.sh
В самом начале был установлен Драйвер CQue DEB (не знаю нужен ли он по факту)