Skip to content

Instantly share code, notes, and snippets.

:set relativenumber
:set showmode
:set surround
:set dialogescape=on
:set ignorecase
nmap ; :
set clipboard+=unnamed
nmap fa :action GotoAction<CR>
const call = async <T>(fn: Promise<T> | (() => T)): Promise<void> => {
if (typeof fn === 'function') {
fn()
} else {
await fn
}
}
schema:
- ../order-list-backend/src/**/*.graphql
- ./src/**/*.graphql
documents: 'src/**/*.graphql'
generates:
graphql_api_build/types_and_hooks.tsx:
plugins:
- typescript
- typescript-operations
- typescript-react-apollo
"scripts": {
"build": "graphql-codegen",
"postinstall": "graphql-codegen",
}
"devDependencies": {
"@graphql-codegen/cli": "1.19.4",
"@graphql-codegen/typescript": "1.19.0",
"@graphql-codegen/typescript-operations": "1.17.12",
"@graphql-codegen/typescript-react-apollo": "2.2.1",
"@graphql-codegen/typescript-resolvers": "1.18.0",
}
import {merge, cloneDeep} from 'lodash'
export type DeepPartial<T> = T extends object
? {[K in keyof T]?: DeepPartial<T[K]>}
: T
export function mergeRegardType<T>(object: T, source: DeepPartial<T>): T {
return merge(cloneDeep(object), source)
}

Privacy Policy

engagingenterprises.co built the POSCheckout app as a Free app. This SERVICE is provided by engagingenterprises.co at no cost and is intended for use as is.

This page is used to inform visitors regarding our policies with the collection, use, and disclosure of Personal Information if anyone decided to use our Service.

If you choose to use our Service, then you agree to the collection and use of information in relation to this policy. The Personal Information that we collect is used for providing and improving the Service. We will not use or share your information with anyone except as described in this Privacy Policy.

The terms used in this Privacy Policy have the same meanings as in our Terms and Conditions, which is accessible at POSCheckout unless otherwise defined in this Privacy Policy.