Skip to content

Commit

Permalink
refactor: more imports from oclif interfaces
Browse files Browse the repository at this point in the history
  • Loading branch information
mshanemc committed Mar 1, 2022
1 parent dd46e31 commit d098e64
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions src/flags/duration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
* For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
*/
import { Flags, Interfaces } from '@oclif/core';
import { OptionFlagProps } from '@oclif/core/lib/interfaces/parser';
import { Messages } from '@salesforce/core';
import { Duration } from '@salesforce/kit';

Expand All @@ -14,7 +13,7 @@ const messages = Messages.loadMessages('@salesforce/sf-plugins-core', 'messages'

type DurationUnit = Lowercase<keyof typeof Duration.Unit>;

export interface DurationFlagConfig extends Partial<OptionFlagProps> {
export interface DurationFlagConfig extends Partial<Interfaces.OptionFlagProps> {
unit: Required<DurationUnit>;
defaultValue?: number;
min?: number;
Expand Down
3 changes: 1 addition & 2 deletions src/flags/salesforceId.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,12 @@
* For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
*/
import { Flags, Interfaces } from '@oclif/core';
import { OptionFlagProps } from '@oclif/core/lib/interfaces/parser';
import { Messages, sfdc } from '@salesforce/core';

Messages.importMessagesDirectory(__dirname);
const messages = Messages.loadMessages('@salesforce/sf-plugins-core', 'messages');

interface IdFlagConfig extends Partial<OptionFlagProps> {
interface IdFlagConfig extends Partial<Interfaces.OptionFlagProps> {
/**
* Can specify if the version must be 15 or 18 characters long. Leave blank to allow either 15 or 18.
*/
Expand Down

0 comments on commit d098e64

Please sign in to comment.