-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(name): bump name to domain-glossary namespace
- Loading branch information
1 parent
34ec02e
commit 20f6009
Showing
11 changed files
with
62 additions
and
40 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import { AsOfGlossary } from 'domain-glossaries'; | ||
|
||
/** | ||
* a phone number, any format | ||
* - e.g., (317) 111-3333 | ||
*/ | ||
export type PhoneNumber = AsOfGlossary< | ||
string, | ||
'domain-glossary-phone.PhoneNumber' | ||
>; |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,16 @@ | ||
import { DomainLiteral } from 'domain-objects'; | ||
|
||
import { UniPhoneNumber } from './UniPhoneNumber'; | ||
|
||
/** | ||
* .what = a universal phone declaration | ||
*/ | ||
export interface UniPhone { | ||
id?: number; | ||
number: string; | ||
|
||
/** | ||
* always declare in terms of uni phone number, to make phone universal | ||
*/ | ||
number: UniPhoneNumber; | ||
} | ||
export class UniPhone extends DomainLiteral<UniPhone> implements UniPhone {} |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
export * from './UniPhoneNumber'; | ||
export * from './isUniPhoneNumber'; | ||
export * from './asUniPhoneNumber'; | ||
export * from './isPhoneNumber'; | ||
export * from './asUniPhoneNumber'; | ||
export * from './isUniPhoneNumber'; | ||
export * from './UniPhone'; | ||
export * from './asUniPhoneInHumanWords'; | ||
export * from './asPartialPhoneInHumanWords'; |