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
| #!/bin/bash | |
| # Based off https://gist.github.com/wojtekmaj/6defa1f358daae28bd52b7b6dbeb7ab6 with a few fixes and | |
| # additions/removals including no git interactions | |
| join_by() { | |
| local d=${1-} f=${2-} | |
| if shift 2; then | |
| printf %s "$f" "${@/#/$d}" | |
| fi |
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 type { Storage, File } from '@google-cloud/storage' with { "resolution-mode": "import" } | |
| async function someFunc(): Promise<File> { | |
| const { Storage } = await import('@google-cloud/storage') | |
| const storage = new Storage() // <- is ESM types, not CSJ | |
| return storage.bucket(bucket).file(filePath) // not the same as File type | |
| } |
OlderNewer