You need to provide some classes and decorators yourself to maintain the same style as typeorm@2.x
.
@EntityRepository(UserEntity)
export class UserRepository extends Repository<UserEntity> {}
↓
import { Dispatch, SetStateAction, useState, useEffect, useCallback, useRef } from 'react'; | |
export type StorageArea = 'sync' | 'local'; | |
// custom hook to set chrome local/sync storage | |
// should also set a listener on this specific key | |
type SetValue<T> = Dispatch<SetStateAction<T>>; | |
/** |
```mermaid
sequenceDiagram
participant dotcom
participant iframe
participant viewscreen
dotcom->>iframe: loads html w/ iframe url
iframe->>viewscreen: request template
viewscreen->>iframe: html & javascript
iframe->>dotcom: iframe ready
version: "3" | |
services: | |
# scheduler & monitoring service | |
airflow-webserver: | |
hostname: myairflow | |
container_name: airflow_container | |
image: 'puckel/docker-airflow:1.10.9' # latest image as of 2021-11-08. | |
ports: | |
- '8085:8080' |
set -eEu | |
set -o pipefail | |
trap 'echo "L$LINENO"; O70; exit -1' ERR | |
O54=4 | |
function O70() | |
{ | |
if [[ ! -z "${O57+x}" ]]; then | |
if [[ -f "${O57}" ]]; then | |
rm -f "${O57}" | |
fi |
import { applyDecorators } from '@nestjs/common'; | |
import { ApiExtraModels, ApiQuery, getSchemaPath } from '@nestjs/swagger'; | |
/** | |
* Combines Swagger Decorators to create a description for `filters[name]=something` | |
* - has support for swagger | |
* - automatic transformation with nestjs | |
*/ | |
// eslint-disable-next-line @typescript-eslint/ban-types,@typescript-eslint/explicit-module-boundary-types | |
export function ApiFilterQuery(fieldName: string, filterDto: Function) { |
The package that linked you here is now pure ESM. It cannot be require()
'd from CommonJS.
This means you have the following choices:
import foo from 'foo'
instead of const foo = require('foo')
to import the package. You also need to put "type": "module"
in your package.json and more. Follow the below guide.await import(…)
from CommonJS instead of require(…)
.// get atob functions | |
VariableDeclarator StaticMemberExpression[property=atob] | |
VariableDeclarator[init.type="CallExpression"][init.callee.body.statements.0.body.statements.0.expression.property="atob"] | |
.closest('VariableDeclarator[init]') | |
// get atob function aliases | |
FunctionDeclaration ReturnStatement IdentifierExpression[name="Pu"] | |
.closest('FunctionDeclaration BindingIdentifier') | |
CallExpression[callee.type="IdentifierExpression"][callee.name="et"][arguments.length=1][arguments.0.type="LiteralStringExpression"] |
name: Test | |
on: | |
push: | |
branches: | |
- main | |
- features/** | |
- dependabot/** | |
pull_request: | |
branches: |