来自@nebular/theme 的 NbSortDirection、NbSortRequest 在哪里?

Where is NbSortDirection, NbSortRequest from @nebular/theme?

我收到以下导入的语法错误。谁能告诉我如何解决这个问题?

All imports in import declaration are unused.ts(6192)

模块'"../../../../../../../../Users/denisputnam/git/nb-niche-app/node_modules/@nebular/theme"'没有导出成员'NbSortDirection'。你是说 'NbLayoutDirection'?ts(2724) direction.service.d.ts(6, 21): 'NbLayoutDirection' 在这里声明。

import { NbSortDirection, NbSortRequest, NbTreeGridDataSource, NbTreeGridDataSourceBuilder } from '@nebular/theme';

enter code     import { Component, OnInit } from '@angular/core';
import { NbSortDirection, NbSortRequest, NbTreeGridDataSource, NbTreeGridDataSourceBuilder } from '@nebular/theme';

@Component({
  selector: 'app-checkpoint-criteria',
  templateUrl: './checkpoint-criteria.component.html',
  styleUrls: ['./checkpoint-criteria.component.scss']
})
export class CheckpointCriteriaComponent implements OnInit {
  customColumn = 'name';
  defaultColumns = [ 'size', 'kind', 'items' ];
  allColumns = [ this.customColumn, ...this.defaultColumns ];

  dataSource: NbTreeGridDataSource<any>;

  sortColumn: string = '';
  sortDirection: NbSortDirection = NbSortDirection.NONE;

  constructor() { }

  ngOnInit() {
  }

}

在我这边工作得很好,这是一个例子https://stackblitz.com/edit/github-7y2b27?file=src%2Fapp%2Fhome%2Fhome.component.ts。只需确保 @nebular/theme 版本至少在 3.4.0 上。