Install dependencies
$ npm i --save-dev eslint @typescript-eslint/parser @typescript-eslint/eslint-plugin prettier eslint-config-prettier eslint-plugin-prettier.eslintrc.js
module.exports = {| // zod schema | |
| z.object({ | |
| // valid if string or: | |
| optional: z.string().optional(), // field not provided, or explicitly `undefined` | |
| nullable: z.string().nullable(), // field explicitly `null` | |
| nullish: z.string().nullish(), // field not provided, explicitly `null`, or explicitly `undefined` | |
| }); | |
| // type | |
| { |
First, the Auth construct adds an /auth route to the API.
const auth = new Auth(stack, 'auth', {
authenticator: {
handler: 'auth.handler',
},
});
const api = new Api(stack, 'api', {| #!/bin/bash | |
| # This scripts installs Lua, LuaRocks, and some Lua libraries on macOS. | |
| # The main purpose is to install Busted for testing Neovim plugins. | |
| # After the installation, you will be able to run test using busted: | |
| # busted --lua nlua spec/mytest_spec.lua | |
| ################################################################################ | |
| # Dependencies | |
| ################################################################################ |