Skip to content

Commit 03a94b3

Browse files
committed
feat: add ApprovedLicense
1 parent 71e3151 commit 03a94b3

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

packages/licenses/src/index.d.ts

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -639,3 +639,20 @@ export type License = {
639639
};
640640

641641
export declare const licenses: Map<LicenseIdentifier, License>;
642+
643+
/** A list of licenses approved for inclusion within the ODC repo */
644+
export type ApprovedLicense = Extract<
645+
LicenseIdentifier,
646+
| '0BSD'
647+
| 'Apache-2.0'
648+
| 'BSD-1-Clause'
649+
| 'BSD-2-Clause'
650+
| 'BSD-3-Clause'
651+
| 'CC0-1.0'
652+
| 'ISC'
653+
| 'MIT'
654+
| 'MIT-0'
655+
| 'PUBLIC-DOMAIN'
656+
| 'Unlicense'
657+
| 'WTFPL'
658+
>;

0 commit comments

Comments
 (0)