-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(fsm): rewrite state machine #923
Conversation
|
||
'detail': () => { | ||
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion | ||
const order = this._stateMachine.context.orderStorage!.data[this._stateMachine.context.orderId!]; |
Check warning
Code scanning / ESLint
Disallow non-null assertions using the `!` postfix operator
|
||
'detail': () => { | ||
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion | ||
const order = this._stateMachine.context.orderStorage!.data[this._stateMachine.context.orderId!]; |
Check warning
Code scanning / ESLint
Disallow non-null assertions using the `!` postfix operator
|
||
tracking: () => { | ||
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion | ||
const order = this._stateMachine.context.orderStorage!.data[this._stateMachine.context.orderId!]; |
Check warning
Code scanning / ESLint
Disallow non-null assertions using the `!` postfix operator
|
||
tracking: () => { | ||
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion | ||
const order = this._stateMachine.context.orderStorage!.data[this._stateMachine.context.orderId!]; |
Check warning
Code scanning / ESLint
Disallow non-null assertions using the `!` postfix operator
843b5f8
to
b482696
Compare
export const finiteStateMachineConsumer = <T extends FsmTypeHelper, TContext extends T['TContext'] = T['TContext']>( | ||
instanceId: string, | ||
makeFromConstructor?: string, | ||
) => { |
Check failure
Code scanning / ESLint
Require explicit return types on functions and class methods
test3: test3.bind(null, id), | ||
} as const); | ||
|
||
function test_bind(): void { |
Check failure
Code scanning / ESLint
Enforce camelcase naming convention
bb552b6
to
16dc2e0
Compare
let userListRecord: Record<string, Record<string, string>> = {}; | ||
let userListMap = new Map<string, Map<string, string>>(); | ||
|
||
function test_make_map() { |
Check failure
Code scanning / ESLint
Require explicit return types on functions and class methods
let userListRecord: Record<string, Record<string, string>> = {}; | ||
let userListMap = new Map<string, Map<string, string>>(); | ||
|
||
function test_make_map() { |
Check failure
Code scanning / ESLint
Enforce camelcase naming convention
} | ||
} | ||
|
||
function test_make_obj() { |
Check failure
Code scanning / ESLint
Require explicit return types on functions and class methods
} | ||
} | ||
|
||
function test_make_obj() { |
Check failure
Code scanning / ESLint
Enforce camelcase naming convention
} | ||
} | ||
|
||
function test_access_map() { |
Check failure
Code scanning / ESLint
Require explicit return types on functions and class methods
} | ||
} | ||
|
||
function test_access_map() { |
Check failure
Code scanning / ESLint
Enforce camelcase naming convention
if (userListMap.get('user_' + size / 2)!.get('user') !== 'user_' + size / 2) throw new Error('not_match'); | ||
} | ||
|
||
function test_access_obj() { |
Check failure
Code scanning / ESLint
Require explicit return types on functions and class methods
if (userListMap.get('user_' + size / 2)!.get('user') !== 'user_' + size / 2) throw new Error('not_match'); | ||
} | ||
|
||
function test_access_obj() { |
Check failure
Code scanning / ESLint
Enforce camelcase naming convention
} | ||
|
||
function test_access_map() { | ||
if (userListMap.get('user_' + size / 2)!.get('user') !== 'user_' + size / 2) throw new Error('not_match'); |
Check warning
Code scanning / ESLint
Disallow non-null assertions using the `!` postfix operator
42ceb4a
to
42b131e
Compare
Co-authored-by: Mohammad Honarvar <honarvar.info@gmail.com>
Co-authored-by: Mohammad Honarvar <honarvar.info@gmail.com>
Co-authored-by: Mohammad Honarvar <honarvar.info@gmail.com>
Co-authored-by: Mohammad Honarvar <honarvar.info@gmail.com>
Co-authored-by: Mohammad Honarvar <honarvar.info@gmail.com>
Co-authored-by: Mohammad Honarvar <honarvar.info@gmail.com>
Co-authored-by: Mohammad Honarvar <honarvar.info@gmail.com>
Co-authored-by: Mohammad Honarvar <honarvar.info@gmail.com>
Co-authored-by: Mohammad Honarvar <honarvar.info@gmail.com>
Co-authored-by: Mohammad Honarvar <honarvar.info@gmail.com>
Co-authored-by: Mohammad Honarvar <honarvar.info@gmail.com>
Co-authored-by: Mohammad Honarvar <honarvar.info@gmail.com>
Co-authored-by: Mohammad Honarvar <honarvar.info@gmail.com>
Co-authored-by: Mohammad Honarvar <honarvar.info@gmail.com>
Co-authored-by: Mohammad Honarvar <honarvar.info@gmail.com>
Co-authored-by: Mohammad Honarvar <honarvar.info@gmail.com>
Co-authored-by: Mohammad Honarvar <honarvar.info@gmail.com>
Co-authored-by: Mohammad Honarvar <honarvar.info@gmail.com>
Co-authored-by: Mohammad Honarvar <honarvar.info@gmail.com>
Co-authored-by: Mohammad Honarvar <honarvar.info@gmail.com>
Co-authored-by: Mohammad Honarvar <honarvar.info@gmail.com>
No description provided.