This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using Sandbox.ModAPI.Ingame; | |
| namespace IngameScript | |
| { | |
| partial class Program : MyGridProgram | |
| { | |
| class DissapearingClass { } | |
| class DissapearingClass<T> { } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // @flow strict | |
| /*:: | |
| type Result<TSuccess, TFailure> = | |
| | { type: 'success', success: TSuccess } | |
| | { type: 'failure', failure: TFailure } | |
| */ | |
| const succeed = (success) => ({ | |
| type: 'success', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const middleWario = (sideEffectorConstructors) => (dispatch, getState) => { | |
| const sideEffectors = sideEffectorConstructors.map(constructor => constructor(getState, dispatch)); | |
| return (next) => (action) => { | |
| sideEffectors.forEach(effector => effector(action)); | |
| next(action); | |
| }; | |
| }; | |
| const toResponse = async (fetchResult) => ( | |
| const response = await fetchResult; |