Skip to content

Commit

Permalink
use name
Browse files Browse the repository at this point in the history
  • Loading branch information
patricklx authored Jun 26, 2024
1 parent 408f457 commit 8241236
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions packages/@glimmer/manager/lib/public/modifier.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,14 +122,7 @@ export class CustomModifierManager<O extends Owner, ModifierInstance>
if (typeof delegate.getDebugName === 'function') {

Check failure on line 122 in packages/@glimmer/manager/lib/public/modifier.ts

View workflow job for this annotation

GitHub Actions / Linting

Property 'getDebugName' does not exist on type 'ModifierManager<ModifierInstance>'.
return delegate.getDebugName(definition);

Check failure on line 123 in packages/@glimmer/manager/lib/public/modifier.ts

View workflow job for this annotation

GitHub Actions / Linting

Property 'getDebugName' does not exist on type 'ModifierManager<ModifierInstance>'.
}
if (typeof definition === 'function') {
if (definition.toString !== Function.toString) {
return definition.toString();
}
return definition.name || '<unknown>';
} else {
return definition.toString() || '<unknown>';
}
return definition.name || '<unknown>';

Check failure on line 125 in packages/@glimmer/manager/lib/public/modifier.ts

View workflow job for this annotation

GitHub Actions / Linting

Property 'name' does not exist on type 'object'.
}

getDebugInstance(owner: O, state: CustomModifierState<ModifierInstance>) {

Check failure on line 128 in packages/@glimmer/manager/lib/public/modifier.ts

View workflow job for this annotation

GitHub Actions / Linting

Property 'getDebugInstance' in type 'CustomModifierManager<O, ModifierInstance>' is not assignable to the same property in base type 'InternalModifierManager<CustomModifierState<ModifierInstance>, object>'.
Expand Down

0 comments on commit 8241236

Please sign in to comment.