You can use this helper to mock AND types your class methods.
class A {
foo(a: number, b: number): number { return a + b }
}| Example render | |
| --- | |
| Migrate CircleCI deploy job to GitHub Actions | ~/w/c/e/r/backend | [main] | 5h:2% 7d:4% |
| ARG WEB_TAG=yourrepo/web:latest | |
| # front assets | |
| # we have to do this "from" as a workaround because --from does not support build args | |
| FROM ${WEB_TAG} AS web_build | |
| # generate-env image | |
| FROM fabienjuif/generate-env:latest AS generate_env | |
| FROM nginx:1.29.2 |
| package batcher | |
| import ( | |
| "context" | |
| "errors" | |
| "log/slog" | |
| "sync" | |
| "sync/atomic" | |
| "time" | |
| ) |
| // This config is in the KDL format: https://kdl.dev | |
| // "/-" comments out the following node. | |
| // Check the wiki for a full description of the configuration: | |
| // https://github.com/YaLTeR/niri/wiki/Configuration:-Overview | |
| // Input device configuration. | |
| // Find the full list of options on the wiki: | |
| // https://github.com/YaLTeR/niri/wiki/Configuration:-Input | |
| input { | |
| keyboard { |
| #!/bin/bash | |
| function usage() { | |
| echo "Usage: $0 <mode>" | |
| echo "Modes:" | |
| echo -e "\t- switch: Switch between max refresh rate with VRR disabled to half the refresh rate and VRR enabled" | |
| echo -e "\t- read: Read the current refresh rate" | |
| } | |
| # check min args |
| netsh interface portproxy add v4tov4 listenport=3000 listenaddress=0.0.0.0 connectport=3000 connectaddress=172.26.17.154 | |
| netsh interface portproxy reset all |
| /* | |
| * You have to install preact (DO NOT INSTALL preact-compat) | |
| * You DO NOT NEED to eject, just replace your package.json scripts.build with 'node ./scripts/build.js' | |
| */ | |
| process.env.NODE_ENV = 'production'; | |
| const configFactory = require('react-scripts/config/webpack.config'); | |
| module.constructor._cache[ | |
| require.resolve('react-scripts/config/webpack.config') |
| Uncaught (in promise) TypeError: Cannot read property 'numberOfItems' of undefined | |
| at particles.js:1 | |
| at Array.forEach (<anonymous>) | |
| at particles.js:1 | |
| [WARNING] Crisp found shims of native JavaScript methods. This can alter the chatbox behavior and break things. Make sure not to override listed functions to ensure your chatbox works as expected. You may be looking for other JavaScript libraries in use on this page. | |
| You can disable this warning by adding: $crisp.push(["safe", true]) to your page JavaScript. |