Skip to content

Commit

Permalink
Update Typescript to v4.4.3 (fixes #1408) (#1424)
Browse files Browse the repository at this point in the history
* Update Typescript to v4.4.3 (fixes #1408)

* Run prettier

* Update package.json
  • Loading branch information
daviseford authored Oct 11, 2021
1 parent c58eb99 commit 33d47e7
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "aos-reminders",
"version": "5.1.3",
"version": "5.1.4",
"private": true,
"homepage": "./",
"dependencies": {
Expand Down Expand Up @@ -109,7 +109,7 @@
"source-map-explorer": "2.5.2",
"ts-node-dev": "1.1.8",
"tsconfig-paths": "3.11.0",
"typescript": "4.3.5",
"typescript": "4.4.3",
"workbox-core": "6.3.0",
"workbox-expiration": "6.3.0",
"workbox-precaching": "6.3.0",
Expand Down
2 changes: 1 addition & 1 deletion src/factions/factionClass.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export class Faction<
this.AggregateArmy = getAggregateArmy(SubFactions, flavorLabel)

this.flavorKeys = this.AggregateArmy.Flavors.map(x => x.name)

this.subFactionKeys = Object.keys(SubFactions) as K[]

this.subFactionKeyMap = this.subFactionKeys.reduce((a, k) => {
Expand Down
2 changes: 1 addition & 1 deletion src/factions/seraphon/rule_sources.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const rule_sources = {
WHITE_DWARF_OCTOBER_2021: {
name: 'White Dwarf (October 2021)',
type: 'white_dwarf',
},
},
}

export default rule_sources
2 changes: 1 addition & 1 deletion src/factions/soulblight_gravelords/artifacts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ const Artifacts = {
effects: [
{
name: `Morbheg's Claw`,
desc: `In your hero phase, you can say that the bearer will carve sigils into the ground using Morbheg's claw. If you do so, add 2 to casting rolls for friendly LEGION OF NIGHT WIZARDS wholly within 12" of the bearer until your next hero phase. However, the bearer cannot make a normal move, run, retreat, make a charge move, shoot or fight until your next hero phase`,
desc: `In your hero phase, you can say that the bearer will carve sigils into the ground using Morbheg's claw. If you do so, add 2 to casting rolls for friendly LEGION OF NIGHT WIZARDS wholly within 12" of the bearer until your next hero phase. However, the bearer cannot make a normal move, run, retreat, make a charge move, shoot or fight until your next hero phase.`,
when: [HERO_PHASE],
rule_sources: [
rule_sources.BATTLETOME_SOULBLIGHT_GRAVELORDS,
Expand Down
2 changes: 1 addition & 1 deletion src/factions/soulblight_gravelords/spells.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ const Spells = {
effects: [
{
name: `Vile Transference`,
desc: `Vile Transference is a spell that has a casting value of 7. If successfully cast, pick 1 enemy unit within 3" of the caster that is visible to them. Roll a number of dice equal to that enemy units Wounds characteristic. For each 6, that unit suffers 1 mortal wound and you can heal 1 wound allocated to the caster.`,
desc: `Casting value of 7. If successfully cast, pick 1 enemy unit within 3" of the caster that is visible to them. Roll a number of dice equal to that enemy unit's Wounds characteristic. For each 6, that unit suffers 1 mortal wound and you can heal 1 wound allocated to the caster.`,
when: [HERO_PHASE],
rule_sources: [
rule_sources.BATTLETOME_SOULBLIGHT_GRAVELORDS,
Expand Down
1 change: 0 additions & 1 deletion src/tests/warscroll/warscrollJson.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -546,7 +546,6 @@ describe('getWarscrollArmyFromJson', () => {
const parsedText = getFile('1585867355154-Warscroll_Builder')
const res = getWarscrollArmyFromPdf(parsedText)
expect(res.selections.artifacts).toContain('Fusil of Conflagration')

})

it('should work with Hrothgorn', () => {
Expand Down
1 change: 1 addition & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"skipLibCheck": true,
"strict": true,
"target": "es5",
"useUnknownInCatchVariables": false
},
"include": ["src"]
}
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -13433,10 +13433,10 @@ typedarray@^0.0.6:
resolved "https://registry.yarnpkg.com/typedarray/-/typedarray-0.0.6.tgz#867ac74e3864187b1d3d47d996a78ec5c8830777"
integrity sha1-hnrHTjhkGHsdPUfZlqeOxciDB3c=

typescript@4.3.5:
version "4.3.5"
resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.3.5.tgz#4d1c37cc16e893973c45a06886b7113234f119f4"
integrity sha512-DqQgihaQ9cUrskJo9kIyW/+g0Vxsk8cDtZ52a3NGh0YNTfpUSArXSohyUGnvbPazEPLu398C0UxmKSOrPumUzA==
typescript@4.4.3:
version "4.4.3"
resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.4.3.tgz#bdc5407caa2b109efd4f82fe130656f977a29324"
integrity sha512-4xfscpisVgqqDfPaJo5vkd+Qd/ItkoagnHpufr+i2QCHBsNYp+G7UAoyFl8aPtx879u38wPV65rZ8qbGZijalA==

unbox-primitive@^1.0.1:
version "1.0.1"
Expand Down

0 comments on commit 33d47e7

Please sign in to comment.