File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1212
1313.github/workflows/scripts/npm_release_files/create_npm_package_file_test.sh
1414
15- curl -L https://deno.land/x/install/install.sh | sh -s " v1.6.3"
16-
17- export PATH=" $HOME /.deno/bin:$PATH "
18-
1915mkdir dist
2016
2117deno run -r --unstable --allow-read --allow-run --no-check ./.github/workflows/scripts/npm_release_files/babel_ts_serialize.ts > dist/ts_serialize.js
@@ -36,6 +32,7 @@ cd dist
3632cd ../examples/node
3733
3834npm ci
35+
3936npm ln ../../dist
4037
4138npm test
Original file line number Diff line number Diff line change 1717
1818 strategy :
1919 matrix :
20- deno : ["v1.6. x"]
20+ deno : ["v1.x"]
2121 os : [macOS-latest, windows-latest, ubuntu-latest]
2222
2323 steps :
Original file line number Diff line number Diff line change @@ -34,7 +34,8 @@ and this project adheres to
3434### Added
3535
3636- docs for @SerializeProperty short cut functions
37- - new ` strategy/utils.ts ` exposing ` getNewSerializable(type) ` for custom decorators
37+ - new ` strategy/utils.ts ` exposing ` getNewSerializable(type) ` for custom
38+ decorators
3839- fixes #100
3940- fixes #105
4041- fixes #99
Original file line number Diff line number Diff line change 11# Benchmarks
22
3- To run use ` $ deno test -- --benchmark `
3+ To run use ` $ deno test -- --benchmark `
Original file line number Diff line number Diff line change @@ -209,12 +209,12 @@ assertEquals(
209209## Short cutting the ` @SerializeProperty ` decorator
210210
211211While ` @SerializeProperty ` is handy with to and from JSON strategies, it can
212- still be verbose to declare the strategies for each property. You can define your
213- owndecorator functions to wrap ` @SerializeProperty ` and provide the ` toJSONStrategy `
214- and ` fromJSONStrategy ` . An example short cut is providing a ` type ` to use with
215- ` toSerializable ` . ` SerializableConstructor ` and ` getNewSerializable ` are provided
216- to allow a raw serializable type or a function that returns a constructed serializable
217- type enabling constructor arguments:
212+ still be verbose to declare the strategies for each property. You can define
213+ your owndecorator functions to wrap ` @SerializeProperty ` and provide the
214+ ` toJSONStrategy ` and ` fromJSONStrategy ` . An example short cut is providing a
215+ ` type ` to use with ` toSerializable ` . ` SerializableConstructor ` and
216+ ` getNewSerializable ` are provided to allow a raw serializable type or a function
217+ that returns a constructed serializable type enabling constructor arguments:
218218
219219``` ts
220220export function DeserializeAs<T >(
You can’t perform that action at this time.
0 commit comments