/
dimamir
/
medusa
Обзор
Документация
Войти
/
dimamir
/
medusa
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
develop
packages/core/utils/src/modules-sdk/query-context.ts
19 строк
405 B
Carlos R. L. Rodrigues
chore: query graph api (#9125)
16 сен 2024, 14:32
Не верифицирован
16 сен 2024, 14:32
8829f89
Код
Авторство
О чём код?
type QueryContextType = { (query: Record<string, unknown>): Record<string, unknown> isQueryContext: (obj: any) => boolean } const __type = "QueryContext" function QueryContextFn(query: Record<string, unknown>) { return { ...query, __type, } } QueryContextFn.isQueryContext = (obj: any) => { return obj.__type === __type } export const QueryContext: QueryContextType = QueryContextFn