Skip to content

Instantly share code, notes, and snippets.

@ypcode
Created July 28, 2017 15:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ypcode/7640d49333503b371a4f85196a39c354 to your computer and use it in GitHub Desktop.
Save ypcode/7640d49333503b371a4f85196a39c354 to your computer and use it in GitHub Desktop.
import { ServiceKey} from "@microsoft/sp-core-library";
/**
* The Configuration Service public interface
*/
export interface IConfigurationService {
tasksListId: string;
statusFieldInternalName: string;
}
/**
* The default implementation of the Configuration service class
* It is a simple class with 2 public properties that represent the settings in the property pane
*/
export default class ConfigurationService implements IConfigurationService {
public tasksListId: string;
public statusFieldInternalName: string;
}
export const ConfigurationServiceKey = ServiceKey.create<IConfigurationService>("kanban:config", ConfigurationService);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment