Skip to content

Commit

Permalink
Add deprecation warnings (#425)
Browse files Browse the repository at this point in the history
* Add deprecation warnings

* Lint code
  • Loading branch information
fcollonval authored Oct 5, 2022
1 parent effc2cd commit a0447b6
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/collections/src/bplustree.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ import {
*
* #### Notes
* Most operations have `O(log32 n)` or better complexity.
*
* @deprecated This class will be removed in @lumino/collections@^2.0.0
*/
export class BPlusTree<T> implements IIterable<T>, IRetroable<T> {
/**
Expand Down Expand Up @@ -316,6 +318,8 @@ export class BPlusTree<T> implements IIterable<T>, IRetroable<T> {

/**
* The namespace for the `BPlusTree` class statics.
*
* @deprecated This namespace will be removed in @lumino/collections@^2.0.0
*/
export namespace BPlusTree {
/**
Expand Down
7 changes: 7 additions & 0 deletions packages/dragdrop/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,15 @@ import { DisposableDelegate, IDisposable } from '@lumino/disposable';

/**
* A type alias which defines the possible independent drop actions.
*
* @deprecated This type will be renamed Drag.DropAction in @lumino/dragdrop@^2.0.0
*/
export type DropAction = 'none' | 'copy' | 'link' | 'move';

/**
* A type alias which defines the possible supported drop actions.
*
* @deprecated This type will be renamed Drag.SupportedActions in @lumino/dragdrop@^2.0.0
*/
export type SupportedActions =
| DropAction
Expand All @@ -33,6 +37,9 @@ export type SupportedActions =
* In order to receive `'lm-dragover'`, `'lm-dragleave'`, or `'lm-drop'`
* events, a drop target must cancel the `'lm-dragenter'` event by
* calling the event's `preventDefault()` method.
*
* @deprecated This interface will be deprecated in @lumino/dragdrop@^2.0.0 in favor
* of ``Drag.Event``.
*/
export interface IDragEvent extends MouseEvent {
/**
Expand Down

0 comments on commit a0447b6

Please sign in to comment.