Skip to content

Commit

Permalink
type fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jin committed Nov 3, 2023
1 parent 8cb5580 commit 0641a92
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions scout.view.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ namespace $.$$ {

const tags = gist.tags

aspect : for( const aspect in tags ) {
aspect : for( const aspect of Object.keys( tags ) as ( keyof typeof tags )[] ) {

for( const tag of tags[ aspect ] ) {
if( this.filter_tag_checked({ aspect , tag }) ) continue aspect
Expand Down Expand Up @@ -120,7 +120,7 @@ namespace $.$$ {
return this.$.$mol_state_local.value( `${ this }.gist_remarks(${ JSON.stringify( id ) })` , next ) || ''
}

gist_aspect_tags( aspect : string ) {
gist_aspect_tags( aspect : keyof $hyoo_scout_gist['tags'] ) {
return this.gist_current()!.tags[ aspect ].map( ( tag : string ) => this.Gist_tag({ aspect , tag }) )
}

Expand All @@ -133,13 +133,13 @@ namespace $.$$ {
}

filter_aspects() {
return Object.keys( $hyoo_scout_gist.make({}).tags )
return ( Object.keys( $hyoo_scout_gist.make({}).tags ) as ( keyof $hyoo_scout_gist['tags'] )[] )
.filter( aspect => this.filter_aspect_tags( aspect ).length > 1 )
.map( aspect => this.Filter_aspect( aspect ) )
}

@ $mol_mem_key
filter_aspect_tags( aspect : string ) {
filter_aspect_tags( aspect : keyof $hyoo_scout_gist['tags'] ) {

const values = new Set< string >()

Expand Down

0 comments on commit 0641a92

Please sign in to comment.