This file has been truncated, but you can view the full file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "openapi": "3.0.4", | |
| "info": { | |
| "title": "Internal API", | |
| "description": "Internal API", | |
| "version": "1.0-0.0.0" | |
| }, | |
| "paths": { | |
| "/api/v1/accounting-companies": { | |
| "post": { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Get-ChildItem -Path "./" -Directory -Recurse -ErrorAction SilentlyContinue | Where-Object { $_.Name -ieq "bin" -or $_.Name -ieq "obj" } | Remove-Item -Recurse -Force |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| export interface Speedy { | |
| speed: number; | |
| } | |
| export class FastestItemsFinder { | |
| constructor( | |
| private readonly config = { | |
| workersCount: 5, | |
| fastestCount: 3, | |
| }, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // generate output using this command: `./node_modules/.bin/tsc --noEmit > ts-errors.txt` | |
| // then apply directive using command: `jscodeshift --v --extensions="ts,tsx" -t ./transform.ts ./src` | |
| import type { Transform } from 'jscodeshift'; | |
| import { readFileSync } from 'node:fs'; | |
| import path, { normalize } from 'node:path'; | |
| import { cwd } from 'node:process'; | |
| import R from 'ramda'; | |
| function applyIgnoreDirective(line: string, errorIndices: number[]): string[] { | |
| const leadingWhitespaceMatch = line.match(/^(\s*)/); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class Bread { | |
| constructor(public readonly width: number) { | |
| if (width <= 0) { | |
| throw new Error('width must be positive') | |
| } | |
| } | |
| } | |
| class BreadCutter { | |
| cut(bread: Bread, width: number): Bread[] { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| export function usePrevious<T>(value: T): T | undefined { | |
| const ref = useRef<T>(); | |
| useEffect(() => { | |
| ref.current = value; | |
| }); | |
| return ref.current; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import React, { VFC } from 'react'; | |
| import styled, { css } from 'styled-components'; | |
| import { Select as AntdSelect, SelectProps as AntdSelectProps } from 'antd'; | |
| import { SelectValue } from 'antd/lib/select'; | |
| export interface SelectProps extends AntdSelectProps<SelectValue> { | |
| suffix?: React.ReactElement; | |
| } | |
| const StyledSelect = styled(AntdSelect)<SelectProps>` |