Skip to content

Commit

Permalink
+++
Browse files Browse the repository at this point in the history
  • Loading branch information
Offirmo committed Nov 4, 2024
1 parent 6e1ff87 commit 5003a71
Show file tree
Hide file tree
Showing 8 changed files with 32 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ export * from './type-guards.js'
export * from './walk.js'
export * from './renderers/common.js'
export * from './sugar/builder.js'
export * from './utils/index.js'

// for convenience of the consumer
export { Enum } from 'typescript-string-enums'
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@

export * from './normalize.js'
export * from './promote.js'
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import { type Immutable } from '@offirmo-private/ts-types'

import {
NodeType,
type NodeLike,
Expand All @@ -22,8 +24,15 @@ function promoteꓽto_node<Hints>($raw: NodeLike<Hints>): Node<Hints> {
return $raw
}

function promoteꓽto_nodeⵧimmutable<Hints>(
$raw: Immutable<NodeLike<Hints>>
): Immutable<Node<Hints>> {
return promoteꓽto_node($raw as any)
}

/////////////////////////////////////////////////

export {
promoteꓽto_node,
promoteꓽto_nodeⵧimmutable,
}
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ don't expect perfection -> trigger self-consciousness = counter-productive
doublespeak: People often say the opposite of what they mean, especially in political language. It allows people to lie while looking like they’re telling the truth. As George Orwell famously wrote in 1984, “War is peace. Freedom is slavery. Ignorance is strength.”
drive by
due diligence
dysthymia https://en.wikipedia.org/wiki/Dysthymia
effective altruism
effet projecteur
effet rétroviseur
Expand Down
8 changes: 8 additions & 0 deletions stack--current/9-rpg/xx-notes/common/notes--civilization.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,11 @@ Satellite (State): In this case, the satellites are separate nation states but t


https://en.wikipedia.org/wiki/Three-sector_model

https://en.wikipedia.org/wiki/Grand_strategy

https://en.wikipedia.org/wiki/Political_history_of_the_world

https://en.wikipedia.org/wiki/Debtors%27_prison

https://en.wikipedia.org/wiki/The_Memorial_of_Saint_Helena
2 changes: 2 additions & 0 deletions stack--current/9-rpg/xx-notes/common/notes--warfare.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@

https://worldofwarcraft.blizzard.com/en-us/news/21952451/midgame-moves-adapt-survive-and-thrive
> Some teams rely heavily on securing a victory shortly after the match begins, while others intend to drag it out as long as possible until they can capitalize on heavy dampening in what essentially becomes a war of attrition. Your goal is to identify these setups, and react by surviving and disrupting that initial rush or by drawing out the enemy team long before dampening sets in and they can slowly rot you down.
+++ https://worldbuilding.stackexchange.com/questions/255642/how-does-an-explorer-civilization-survive-the-dark-forest-scenario
5 changes: 5 additions & 0 deletions stack--current/9-rpg/xx-notes/setting--scifi/notes.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,8 @@ nuclear waste disposal (see Universal Principles of Design "Archetypes" p. 25) o


escape dying star to multiple galactic arms


https://worldbuilding.stackexchange.com/questions/255642/how-does-an-explorer-civilization-survive-the-dark-forest-scenario

https://worldbuilding.stackexchange.com/questions/253616/why-isnt-the-solar-system-infested-with-space-pirates
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { type Immutable } from '@offirmo-private/ts-types'

import { UUID } from '@offirmo-private/uuid'
import { TimestampUTCMs } from '@offirmo-private/timestamps'
import { type PendingEngagementUId } from '@oh-my-rpg/state--engagement'
import {
type State,
type StartSessionParams,
Expand Down Expand Up @@ -34,11 +35,10 @@ export type ActionType = Enum<typeof ActionType> // eslint-disable-line no-redec

/////////////////////

// TODO all those actions should be in the state package! (v2)
export interface BaseAction {
//v: 1 // not sure needed
now_ms?: TimestampUTCMs // not recommended! better inferred at dispatch! But can be useful for tests or replay.
expected_revisions: {
expected_revisions?: {
[k:string]: number
}
}
Expand Down Expand Up @@ -89,6 +89,7 @@ export interface ActionRedeemCode extends BaseAction {

export interface ActionAcknowledgeEngagementMsgSeen extends BaseAction, AcknowledgeEngagementMsgSeen {
type: typeof ActionType.acknowledge_engagement_msg_seen
uids: Array<PendingEngagementUId>
}

export interface ActionUpdateToNow extends BaseAction {
Expand Down

0 comments on commit 5003a71

Please sign in to comment.