https://pulumi.com logo
Title
p

plain-caravan-71891

04/22/2021, 10:33 AM
but the example code is throwing a lot of TS errors related to the reduce lambda
TSError: ⨯ Unable to compile TypeScript:
    index.ts(194,81): error TS1128: Declaration or statement expected.
    index.ts(194,107): error TS1005: ',' expected.
    index.ts(198,3): error TS1005: ',' expected.
    index.ts(198,38): error TS1005: ';' expected.
    index.ts(194,64): error TS7006: Parameter '__obj' implicitly has an 'any' type.
    index.ts(194,71): error TS7006: Parameter 'dvo' implicitly has an 'any' type.
    index.ts(194,84): error TS2304: Cannot find name '__obj'.
    index.ts(194,91): error TS2556: Expected 1-2 arguments, but got 4 or more.
    index.ts(194,92): error TS2304: Cannot find name 'dvo'.
    index.ts(195,9): error TS2304: Cannot find name 'dvo'.
    index.ts(196,11): error TS2304: Cannot find name 'dvo'.
    index.ts(197,9): error TS2304: Cannot find name 'dvo'.
    index.ts(198,30): error TS2695: Left side of comma operator is unused and has no side effects.
    index.ts(198,33): error TS2304: Cannot find name 'value'.
    index.ts(199,3): error TS2454: Variable 'exampleRecord' is used before being assigned.
    index.ts(199,68): error TS2339: Property 'key' does not exist on type 'void'.
    index.ts(201,19): error TS2339: Property 'value' does not exist on type 'void'.
    index.ts(202,23): error TS2339: Property 'value' does not exist on type 'void'.
    index.ts(204,19): error TS2339: Property 'value' does not exist on type 'void'.
    index.ts(210,26): error TS2454: Variable 'exampleRecord' is used before being assigned.
    index.ts(210,40): error TS2339: Property 'apply' does not exist on type 'Record[]'.
    index.ts(210,46): error TS7006: Parameter 'exampleRecord' implicitly has an 'any' type.
    index.ts(210,81): error TS7006: Parameter 'record' implicitly has an 'any' type.