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
{ | |
// ******************************* | |
// * GENERAL SETTINGS * | |
// ******************************* | |
"workbench.startupEditor": "none", | |
"workbench.iconTheme": "material-icon-theme", | |
"workbench.editor.closeOnFileDelete": false, | |
"window.zoomLevel": 0, | |
"window.newWindowProfile": "Default", |
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
"purge:js": "rm -rf node_modules package-lock.json yarn.lock && npm cache clean --force && yarn cache clean && rm -rf $TMPDIR/metro-* $TMPDIR/haste-* ~/Library/Caches/Yarn", | |
"purge:android": "(cd android && ./gradlew --stop) && rm -rf ~/.gradle/caches/ ~/.gradle/daemon ~/.gradle/native ~/.gradle/wrapper android/app/build", | |
"purge:ios": "rm -rf ios/Pods/* ios/Podfile.lock ios/build ~/Library/Caches/CocoaPods ~/Library/Developer/Xcode/DerivedData ~/Library/Developer/CoreSimulator/Caches && xcrun simctl erase all && pod cache clean --all", | |
"purge:gem": "rm -rf Gemfile.lock vendor/* ~/.gem && gem cleanup", | |
"purge:install": "yarn install && cd ios && bundle install && bundle exec pod install", | |
"purge": "npm run purge:js && npm run purge:android && npm run purge:ios && npm run purge:gem && npm run purge:install" |
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, { | |
forwardRef, | |
PropsWithChildren, | |
useImperativeHandle, | |
memo, | |
useMemo, | |
useCallback, | |
} from 'react'; | |
import { | |
Gesture, |
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, { | |
PropsWithChildren, | |
useRef, | |
useImperativeHandle, | |
forwardRef, | |
memo, | |
useCallback, | |
useMemo, | |
useEffect, | |
} from 'react'; |
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
/** | |
* Recursively extracts nested keys of an object as arrays. | |
* Useful for representing nested object paths in an array format. | |
* | |
* Example: | |
* type Theme = { colors: { primary: string; secondary: { light: string; dark: string } } }; | |
* type Paths = NestedKeyArray<Theme['colors']>; | |
* ["primary"] | ["secondary", "light"] | ["secondary", "dark"] | |
*/ | |
export type NestedKeysArray<T> = T extends object |
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
/** | |
* Generates a tuple of numbers from 0 up to (but not including) N. | |
* Used internally for numeric operations like subtraction. | |
* | |
* Example: | |
* type Numbers = Enumerate<3>; // [0, 1, 2] | |
*/ | |
export type Enumerate< | |
N extends number, | |
Acc extends number[] = [], |
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
/** | |
* Generates a tuple of numbers from 0 up to (but not including) N. | |
* Used internally for numeric operations like subtraction. | |
* | |
* Example: | |
* type Numbers = Enumerate<3>; // [0, 1, 2] | |
*/ | |
type Enumerate< | |
N extends number, | |
Acc extends number[] = [], |
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
/** | |
* Recursively extracts nested keys of an object as dot-notation strings. | |
* Useful for representing nested object paths in a string format. | |
* | |
* Example: | |
* type Theme = { colors: { primary: string; secondary: { light: string; dark: string } } }; | |
* type Paths = NestedDotNotationPaths<Theme['colors']>; | |
* "primary" | "secondary.light" | "secondary.dark" | |
*/ | |
export type NestedDotNotationPaths<T> = T extends object |