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
// Based on: https://gist.github.com/ericelliott/e2dd9cbe5c64e44d6122ba76ec7dbf55#file-dev-vs-production-type-checking-js | |
type Timestamp = number // Date.now() returns number, so type alias gives better documentation | |
// good type names provide good documentation | |
type Employee = { | |
name: string, | |
hireDate?: Timestamp, | |
title?: string, | |
} |
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
// issue in context: https://github.com/golang/go/issues/44279#issuecomment-1159714960 | |
type OsFilesystem struct{} | |
func (f *OsFilesystem) Open(name string) (fs.File, error) { | |
return os.Open(name) | |
} | |
// *OsFilesystem implements fs.FS | |
var _ fs.FS = new(OsFilesystem) |
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
name: Issue to note | |
concurrency: issue-to-note | |
on: | |
issues: | |
types: [opened, edited] | |
jobs: | |
run: | |
runs-on: ubuntu-latest |
OlderNewer