@@ -24,14 +24,18 @@ const STRINGS = {
2424 } ,
2525 github : {
2626 description : 'Things related to the Hub- shit. Walked myself right into that one.' ,
27- pullRequestDescription : 'Open a pull request. What did you expect?' ,
28- actionsDescription : 'Just pushed your changes? Want to watch the deployment fail?' ,
27+ pullRequest : {
28+ description : 'Open a pull request. What did you expect?' ,
29+ action : ( tb : string , tr : string , fb : string , fr : string ) =>
30+ chalkTemplate `Fine. Making a PR ${ tr } /${ tb } <- ${ fr } /${ fb } . Hope it gets closed, or a ton conflicts.` ,
31+ } ,
32+ actions : {
33+ description : 'Just pushed your changes? Want to watch the deployment fail?' ,
34+ action : ( owner : string , repo : string ) =>
35+ chalkTemplate `Opening Actions page for ${ owner } /${ repo } . Hope your workflows fail.` ,
36+ } ,
2937 noSubcommand : "You're ordering a category instead of an item. Pick one of the subcommands." ,
3038 invalidSubcommand : "That doesn't exist on the menu. Try again." ,
31- actionPr : ( tb : string , tr : string , fb : string , fr : string ) =>
32- chalkTemplate `Fine. Making a PR ${ tr } /${ tb } <- ${ fr } /${ fb } . Hope it gets closed, or a ton conflicts.` ,
33- actionActions : ( owner : string , repo : string ) =>
34- chalkTemplate `Opening Actions page for ${ owner } /${ repo } . Hope your workflows fail.` ,
3539 noActiveLocalBranch : [
3640 'Are you not on a branch? What are you doing?' ,
3741 "I haven't been trained to deal with this. No active brach?" ,
@@ -197,7 +201,10 @@ const STRINGS = {
197201// like: never ?? never => never
198202type NeverCoalesce < T , Y > = [ T ] extends [ never ] ? Y : T
199203
200- export type StringDict = Record < string , Stringifiable | RandomizableStringifiable >
204+ export interface StringDict {
205+ [ key : string ] : Stringifiable | RandomizableStringifiable | StringDict
206+ }
207+
201208export type StringifableDynamic = ( ...args : any [ ] ) => string
202209export type Stringifiable = string | StringifableDynamic
203210export type RandomizableStringifiable = Array < Stringifiable >
0 commit comments